2020-06-11 14:41:32 +00:00
|
|
|
0=${(%):-%N}
|
|
|
|
source ${0:A:h}/history-substring-search.zsh
|
2019-01-12 15:47:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Bind terminal-specific up and down keys
|
2020-06-11 14:41:32 +00:00
|
|
|
|
2019-01-12 15:47:23 +00:00
|
|
|
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
|
|
|
|
|