fix zsh-history-substring-search

This commit is contained in:
Joel Beckmeyer 2024-04-19 15:34:32 -04:00
parent 53d847d783
commit bf2f3952ad

View File

@ -61,9 +61,13 @@ fi
### End user configuration ### End user configuration
### hooks/includes ### hooks/includes
for plugin in zsh-history-substring-search zsh-autosuggestions \ for plugin in zsh-syntax-highlighting zsh-history-substring-search \
zsh-syntax-highlighting; do zsh-autosuggestions; do
if [ -f /usr/share/zsh/plugins/$plugin/${plugin}.zsh ]; then if [ -f /usr/share/zsh/plugins/$plugin/${plugin}.zsh ]; then
. /usr/share/zsh/plugins/$plugin/${plugin}.zsh source /usr/share/zsh/plugins/$plugin/${plugin}.zsh
fi fi
done done
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down