|
|
@ -28,17 +28,19 @@ fi
|
|
|
|
# Key Bindings
|
|
|
|
# Key Bindings
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Emacs
|
|
|
|
if [[ -n $key_info ]]; then
|
|
|
|
bindkey -M emacs "$key_info[Control]P" history-substring-search-up
|
|
|
|
# Emacs
|
|
|
|
bindkey -M emacs "$key_info[Control]N" history-substring-search-down
|
|
|
|
bindkey -M emacs "$key_info[Control]P" history-substring-search-up
|
|
|
|
|
|
|
|
bindkey -M emacs "$key_info[Control]N" history-substring-search-down
|
|
|
|
# Vi
|
|
|
|
|
|
|
|
bindkey -M vicmd "k" history-substring-search-up
|
|
|
|
# Vi
|
|
|
|
bindkey -M vicmd "j" history-substring-search-down
|
|
|
|
bindkey -M vicmd "k" history-substring-search-up
|
|
|
|
|
|
|
|
bindkey -M vicmd "j" history-substring-search-down
|
|
|
|
# Emacs and Vi
|
|
|
|
|
|
|
|
for keymap in 'emacs' 'viins'; do
|
|
|
|
# Emacs and Vi
|
|
|
|
bindkey -M "$keymap" "$key_info[Up]" history-substring-search-up
|
|
|
|
for keymap in 'emacs' 'viins'; do
|
|
|
|
bindkey -M "$keymap" "$key_info[Down]" history-substring-search-down
|
|
|
|
bindkey -M "$keymap" "$key_info[Up]" history-substring-search-up
|
|
|
|
done
|
|
|
|
bindkey -M "$keymap" "$key_info[Down]" history-substring-search-down
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|