From 9730fc1f5ce29141b807141bcff81b6191198340 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 21 Dec 2022 14:01:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B1=D0=BE=D1=80=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B0=20history-search-multi-wor?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 82-completion.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/82-completion.zsh b/82-completion.zsh index 4c73075..66be54a 100644 --- a/82-completion.zsh +++ b/82-completion.zsh @@ -43,6 +43,7 @@ zinit wait'1' lucid light-mode depth'1' for \ zsh-users/zsh-history-substring-search [ "$(lsb_release -c -s)" = "orel" ] && ZSH_HISTORY_SEARCH_MULTI_WORD_MODE=1 +[ -n "${SSH_CONNECTION}" ] && ZSH_HISTORY_SEARCH_MULTI_WORD_MODE=2 zstyle ':history-search-multi-word' page-size "$((LINES/2))" zstyle ':plugin:history-search-multi-word' clear-on-cancel 'yes' @@ -50,9 +51,12 @@ 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 +elif [ ${ZSH_HISTORY_SEARCH_MULTI_WORD_MODE} = "1" ]; then zinit wait'2' lucid light-mode depth'1' for \ atload"bindkey '^K' history-search-multi-word" \ zdharma-continuum/history-search-multi-word +elif [ ${ZSH_HISTORY_SEARCH_MULTI_WORD_MODE} = "2" ]; then + zinit light zdharma-continuum/history-search-multi-word + bindkey '^K' history-search-multi-word fi