use less code
This commit is contained in:
parent
c30703ac66
commit
d9bf3585f1
1 changed files with 2 additions and 13 deletions
15
init.zsh
15
init.zsh
|
@ -7,19 +7,6 @@ autoload -Uz is-at-least && if ! is-at-least 5.2; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
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
|
# Autoload module functions
|
||||||
() {
|
() {
|
||||||
local mod_function
|
local mod_function
|
||||||
|
@ -82,6 +69,8 @@ Actions:
|
||||||
;;
|
;;
|
||||||
build-cache) source ${ZIM_HOME}/tools/zim_build_cache && print 'Cache rebuilt'
|
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
|
remove) zsh ${ZIM_HOME}/tools/zim_remove
|
||||||
;;
|
;;
|
||||||
reset) zsh ${ZIM_HOME}/tools/zim_reset
|
reset) zsh ${ZIM_HOME}/tools/zim_reset
|
||||||
|
|
Loading…
Reference in a new issue