diff --git a/init.zsh b/init.zsh index 3de17fd..bc33c0e 100755 --- a/init.zsh +++ b/init.zsh @@ -7,19 +7,6 @@ autoload -Uz is-at-least && if ! is-at-least 5.2; then return 1 fi -# Define zim location -(( ! ${+ZIM_HOME} )) && export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim - -# Source user configuration -[[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc - -# Set input mode before loading modules -if [[ ${zinput_mode} == 'vi' ]]; then - bindkey -v -else - bindkey -e -fi - # Autoload module functions () { local mod_function @@ -82,6 +69,8 @@ Actions: ;; build-cache) source ${ZIM_HOME}/tools/zim_build_cache && print 'Cache rebuilt' ;; + reload) zmanage clean-cache && zmanage build-cache + ;; remove) zsh ${ZIM_HOME}/tools/zim_remove ;; reset) zsh ${ZIM_HOME}/tools/zim_reset