From 834a086fbc9bacf6d7fc2faec2614b53c03cebcf Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 21 Dec 2022 13:46:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D1=80=D1=83=D0=B3=D0=BE=D0=B9=20=D0=B2?= =?UTF-8?q?=D0=B0=D1=80=D0=B8=D0=B0=D0=BD=D1=82=20=D0=B7=D0=B0=D0=BF=D1=83?= =?UTF-8?q?=D1=81=D0=BA=D0=B0=20history-search-multi-word?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 82-completion.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/82-completion.zsh b/82-completion.zsh index b53da28..956c1d2 100644 --- a/82-completion.zsh +++ b/82-completion.zsh @@ -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