Fixed init.zsh syntax, moved setting in .zimrc
This commit is contained in:
parent
727763feed
commit
b92415af42
2 changed files with 5 additions and 9 deletions
4
init.zsh
4
init.zsh
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue