From e29c4e9cde1aa750c9b1fe778c34edb795dd0347 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Thu, 19 Apr 2018 12:31:38 -0500 Subject: [PATCH] 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`. --- init.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.zsh b/init.zsh index 9e7efc9..dfae382 100755 --- a/init.zsh +++ b/init.zsh @@ -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