Fixed init.zsh syntax, moved setting in .zimrc
This commit is contained in:
parent
727763feed
commit
b92415af42
4
init.zsh
4
init.zsh
|
@ -14,8 +14,8 @@ fi
|
||||||
# Source user configuration
|
# Source user configuration
|
||||||
[[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc
|
[[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc
|
||||||
|
|
||||||
# If necessary, set vi mode before loading modules
|
# If necessary, set vi mode before loading modules to ensure history search with arrow keys works in vi mode
|
||||||
if ${zinput_mode}='vi'; then
|
if [ ${zinput_mode}='vi' ]; then
|
||||||
set -o vi
|
set -o vi
|
||||||
else
|
else
|
||||||
set -o emacs
|
set -o emacs
|
||||||
|
|
|
@ -26,13 +26,6 @@ zmodules=(directory environment git git-info history input utility custom \
|
||||||
# Set your desired prompt here
|
# Set your desired prompt here
|
||||||
zprompt_theme='steeef'
|
zprompt_theme='steeef'
|
||||||
|
|
||||||
#
|
|
||||||
# Input
|
|
||||||
#
|
|
||||||
|
|
||||||
# Set to vi or emacs
|
|
||||||
zinput_mode='emacs'
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Completion
|
# Completion
|
||||||
#
|
#
|
||||||
|
@ -64,6 +57,9 @@ ztermtitle='%n@%m:%~'
|
||||||
# Input
|
# Input
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Set to vi or emacs
|
||||||
|
zinput_mode='emacs'
|
||||||
|
|
||||||
# Uncomment to enable double-dot expansion.
|
# Uncomment to enable double-dot expansion.
|
||||||
# This appends '../' to your input for each '.' you type after an initial '..'
|
# This appends '../' to your input for each '.' you type after an initial '..'
|
||||||
#zdouble_dot_expand='true'
|
#zdouble_dot_expand='true'
|
||||||
|
|
Loading…
Reference in a new issue