ZSH Config: add up & down key mapping for history search
This commit is contained in:
parent
437ce81d3d
commit
b78abdb5b5
1 changed files with 9 additions and 0 deletions
|
@ -146,4 +146,13 @@ if [ -r "$HOME/.zprofile" ] ; then
|
||||||
fi
|
fi
|
||||||
###################################################################################
|
###################################################################################
|
||||||
|
|
||||||
|
###################################################################################
|
||||||
|
# bind UP and DOWN arrow keys to history substring search
|
||||||
|
zmodload zsh/terminfo
|
||||||
|
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||||
|
bindkey "$terminfo[kcud1]" history-substring-search-down
|
||||||
|
bindkey '^[[A' history-substring-search-up
|
||||||
|
bindkey '^[[B' history-substring-search-down
|
||||||
|
###################################################################################
|
||||||
|
|
||||||
####################################################################################################################################################
|
####################################################################################################################################################
|
||||||
|
|
Loading…
Add table
Reference in a new issue