Bind also UP/DOWN arrow keys in history-substring-search

Without it only keypad arrow keys are working
This commit is contained in:
Marc Cornellà 2015-12-14 12:40:57 +01:00
commit 2df70ee5ca

View file

@ -19,8 +19,15 @@ if [[ -n "$terminfo[kcuu1]" ]]; then
bindkey -M emacs "$terminfo[kcuu1]" history-substring-search-up
bindkey -M viins "$terminfo[kcuu1]" history-substring-search-up
fi
if [[ -n "$terminfo[cuu1]" ]]; then
bindkey -M emacs "$terminfo[cuu1]" history-substring-search-up
bindkey -M viins "$terminfo[cuu1]" history-substring-search-up
fi
if [[ -n "$terminfo[kcud1]" ]]; then
bindkey -M emacs "$terminfo[kcud1]" history-substring-search-down
bindkey -M viins "$terminfo[kcud1]" history-substring-search-down
fi
if [[ -n "$terminfo[cud1]" ]]; then
bindkey -M emacs "$terminfo[cud1]" history-substring-search-down
bindkey -M viins "$terminfo[cud1]" history-substring-search-down
fi