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
1 changed files with 3 additions and 3 deletions

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
set -o emacs
bindkey -e
# Autoload module functions