1
0
Fork 0
mirror of synced 2024-05-27 12:31:12 -04:00

Verify terminfo before bindkey

This commit is contained in:
Grant Guthrie 2019-09-25 14:42:51 -04:00
parent b180b40b27
commit a79b604321

View file

@ -11,5 +11,9 @@ bindkey '^[[B' history-substring-search-down
# Bind up and down keys
zmodload -F zsh/terminfo +p:terminfo
bindkey "${terminfo[kcuu1]}" history-substring-search-up
bindkey "${terminfo[kcud1]}" history-substring-search-down
if [[ "${terminfo[kcuu1]}" != "" ]]; then
bindkey "${terminfo[kcuu1]}" history-substring-search-up
fi
if [[ "${terminfo[kcud1]}" != "" ]]; then
bindkey "${terminfo[kcud1]}" history-substring-search-down
fi