Другой вариант запуска history-search-multi-word

This commit is contained in:
Andrei Astafev 2022-12-21 13:46:19 +03:00
parent c7b2bbb92f
commit 834a086fbc

View File

@ -42,11 +42,16 @@ zinit wait'1' lucid light-mode depth'1' for \
bindkey '^[[B' history-substring-search-down" \
zsh-users/zsh-history-substring-search
[ "$(lsb_release -c -s)" = "orel" ] && ZSH_HISTORY_SEARCH_MULTI_WORD_MODE=1
zstyle ':history-search-multi-word' page-size "$((LINES/2))"
zstyle ':plugin:history-search-multi-word' clear-on-cancel 'yes'
if [[ -z ${ZSH_HISTORY_SEARCH_MULTI_WORD_MODE+set} ]]; then
zinit wait'1' lucid light-mode depth'1' for \
atload"bindkey '^K' history-search-multi-word" \
zdharma-continuum/history-search-multi-word
else
zinit light zdharma-continuum/history-search-multi-word
bindkey '^K' history-search-multi-word
fi