You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
452 B
15 lines
452 B
0=${(%):-%N} |
|
source ${0:A:h}/history-substring-search.zsh |
|
|
|
|
|
# Bind terminal-specific up and down keys |
|
|
|
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[kcud1]" ]]; then |
|
bindkey -M emacs "$terminfo[kcud1]" history-substring-search-down |
|
bindkey -M viins "$terminfo[kcud1]" history-substring-search-down |
|
fi |
|
|
|
|