1
0
Fork 0
mirror of synced 2024-11-16 13:05:35 -05:00
This commit is contained in:
Anton Shiryaev 2018-04-19 16:52:50 +00:00 committed by GitHub
commit 642d1ec8ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View file

@ -65,7 +65,7 @@ Installing Zim is easy. If you have a different shell framework installed (like
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
--------

View file

@ -13,6 +13,13 @@ fi
# Source user configuration
[[ -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
() {
local mod_function

View file

@ -12,7 +12,7 @@
# 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.
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
#
# 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'