Merge e41983cd67
into 5768625356
This commit is contained in:
commit
642d1ec8ec
|
@ -65,7 +65,7 @@ Installing Zim is easy. If you have a different shell framework installed (like
|
||||||
source ${ZDOTDIR:-${HOME}}/.zlogin
|
source ${ZDOTDIR:-${HOME}}/.zlogin
|
||||||
```
|
```
|
||||||
|
|
||||||
5. You're done! Enjoy your Zsh IMproved! Take some time to read about the [available modules][modules] and tweak your `.zshrc` file.
|
5. You're done! Enjoy your Zsh IMproved! Take some time to read about the [available modules][modules] and tweak your `.zshrc` file. To set input mode, set `zinput_mode` in `.zimrc`.
|
||||||
|
|
||||||
Updating
|
Updating
|
||||||
--------
|
--------
|
||||||
|
|
7
init.zsh
7
init.zsh
|
@ -13,6 +13,13 @@ 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 to ensure history search with arrow keys works in vi mode
|
||||||
|
if [ ${zinput_mode}='vi' ]; then
|
||||||
|
set -o vi
|
||||||
|
else
|
||||||
|
set -o emacs
|
||||||
|
fi
|
||||||
|
|
||||||
# Autoload module functions
|
# Autoload module functions
|
||||||
() {
|
() {
|
||||||
local mod_function
|
local mod_function
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# The second line of modules may depend on options set by modules in the first
|
# The second line of modules may depend on options set by modules in the first
|
||||||
# line. These dependencies are noted on the respective module's README.md.
|
# line. These dependencies are noted on the respective module's README.md.
|
||||||
zmodules=(directory environment git git-info history input utility custom \
|
zmodules=(directory environment git git-info history input utility custom \
|
||||||
syntax-highlighting history-substring-search prompt completion)
|
syntax-highlighting prompt completion history-substring-search)
|
||||||
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
|
@ -57,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