mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
Merge pull request #2511 from FloFra/master
Makes history-substring-search use term specific up and down buttons.
This commit is contained in:
commit
5eb5f7138a
1 file changed
+7
-2
@@ -163,8 +163,13 @@ function history-substring-search-down() {
|
|||||||
zle -N history-substring-search-up
|
zle -N history-substring-search-up
|
||||||
zle -N history-substring-search-down
|
zle -N history-substring-search-down
|
||||||
|
|
||||||
bindkey '\e[A' history-substring-search-up
|
zmodload zsh/terminfo
|
||||||
bindkey '\e[B' history-substring-search-down
|
if [[ -n "$terminfo[kcuu1]" ]]; then
|
||||||
|
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||||
|
fi
|
||||||
|
if [[ -n "$terminfo[kcud1]" ]]; then
|
||||||
|
bindkey "$terminfo[kcud1]" history-substring-search-down
|
||||||
|
fi
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# implementation details
|
# implementation details
|
||||||
|
|||||||
Reference in new issue
Block a user