diff --git a/modules/history-substring-search/init.zsh b/modules/history-substring-search/init.zsh index 619bda0..933b07c 100644 --- a/modules/history-substring-search/init.zsh +++ b/modules/history-substring-search/init.zsh @@ -5,7 +5,6 @@ # Source script source ${0:h}/external/zsh-history-substring-search.zsh || return 1 -# 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 +# Binding ^[[A/^[[B manually mean up/down works with history-substring-search both before and after zle-line-init +bindkey '^[[A' history-substring-search-up +bindkey '^[[B' history-substring-search-down