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:
Eric Nielsen 2018-04-19 12:31:38 -05:00
parent acdb1d4bc7
commit e29c4e9cde

View file

@ -14,10 +14,10 @@ fi
[[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc
# Set input mode before loading modules
if [ ${zinput_mode}='vi' ]; then
set -o vi
if [[ ${zinput_mode} == 'vi' ]]; then
bindkey -v
else
set -o emacs
bindkey -e
fi
# Autoload module functions