Use bindkey instead of set -o
Using `bindkey` is the preferred zsh way to do it. As far as I checked, also `set -o emacs` defines a less complete set of key bindings compared to `bindkey -e`.
This commit is contained in:
parent
acdb1d4bc7
commit
e29c4e9cde
1 changed files with 3 additions and 3 deletions
6
init.zsh
6
init.zsh
|
@ -14,10 +14,10 @@ fi
|
||||||
[[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc
|
[[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc
|
||||||
|
|
||||||
# Set input mode before loading modules
|
# Set input mode before loading modules
|
||||||
if [ ${zinput_mode}='vi' ]; then
|
if [[ ${zinput_mode} == 'vi' ]]; then
|
||||||
set -o vi
|
bindkey -v
|
||||||
else
|
else
|
||||||
set -o emacs
|
bindkey -e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Autoload module functions
|
# Autoload module functions
|
||||||
|
|
Loading…
Reference in a new issue