1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

Add .zimrc option 'zinput_mode'

Closes #261
This commit is contained in:
Anton Shiryaev 2018-04-06 01:50:55 +03:00 committed by Eric Nielsen
parent 5768625356
commit acdb1d4bc7
2 changed files with 10 additions and 0 deletions

View file

@ -13,6 +13,13 @@ fi
# Source user configuration
[[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc
# Set input mode before loading modules
if [ ${zinput_mode}='vi' ]; then
set -o vi
else
set -o emacs
fi
# Autoload module functions
() {
local mod_function

View file

@ -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'