Fixed init.zsh syntax, moved setting in .zimrc

This commit is contained in:
Anton Shiryaev 2018-04-06 02:24:27 +03:00
parent 727763feed
commit b92415af42
2 changed files with 5 additions and 9 deletions

View File

@ -14,8 +14,8 @@ fi
# Source user configuration
[[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc
# If necessary, set vi mode before loading modules
if ${zinput_mode}='vi'; then
# If necessary, set vi mode before loading modules to ensure history search with arrow keys works in vi mode
if [ ${zinput_mode}='vi' ]; then
set -o vi
else
set -o emacs

View File

@ -26,13 +26,6 @@ zmodules=(directory environment git git-info history input utility custom \
# Set your desired prompt here
zprompt_theme='steeef'
#
# Input
#
# Set to vi or emacs
zinput_mode='emacs'
#
# Completion
#
@ -64,6 +57,9 @@ ztermtitle='%n@%m:%~'
# Input
#
# Set to vi or emacs
zinput_mode='emacs'
# Uncomment to enable double-dot expansion.
# This appends '../' to your input for each '.' you type after an initial '..'
#zdouble_dot_expand='true'