mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-07 06:08:39 +02:00
Bind also UP/DOWN arrow keys in history-substring-search
Without it only keypad arrow keys are working
This commit is contained in:
parent
b7142922f8
commit
2df70ee5ca
1 changed files with 8 additions and 1 deletions
|
|
@ -19,8 +19,15 @@ if [[ -n "$terminfo[kcuu1]" ]]; then
|
||||||
bindkey -M emacs "$terminfo[kcuu1]" history-substring-search-up
|
bindkey -M emacs "$terminfo[kcuu1]" history-substring-search-up
|
||||||
bindkey -M viins "$terminfo[kcuu1]" history-substring-search-up
|
bindkey -M viins "$terminfo[kcuu1]" history-substring-search-up
|
||||||
fi
|
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
|
if [[ -n "$terminfo[kcud1]" ]]; then
|
||||||
bindkey -M emacs "$terminfo[kcud1]" history-substring-search-down
|
bindkey -M emacs "$terminfo[kcud1]" history-substring-search-down
|
||||||
bindkey -M viins "$terminfo[kcud1]" history-substring-search-down
|
bindkey -M viins "$terminfo[kcud1]" history-substring-search-down
|
||||||
fi
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue