Правка для работы MC в сессии SSH

This commit is contained in:
Andrei Astafev 2022-12-18 12:02:02 +03:00
parent fb5782101b
commit 193684d640

View File

@ -33,12 +33,16 @@ zinit wait'!0' lucid light-mode depth=1 for \
atload"!_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions
zstyle ":history-search-multi-word" page-size "$(($LINES/2))"
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
zinit wait'!0' lucid light-mode depth=1 for \
zdharma-continuum/history-search-multi-word \
atload"bindkey '^[[A' history-substring-search-up; \
bindkey '^[[B' history-substring-search-down; \
bindkey '^K' history-search-multi-word " \
zsh-users/zsh-history-substring-search
if [ -n ${ZSH_MC_SUBSHELL+set} ] && [ -n ${SSH_CONNECTION+set} ]; then
zinit load zsh-users/zsh-history-substring-search
else
zstyle ":history-search-multi-word" page-size "$(($LINES/2))"
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
zinit wait'!0' lucid light-mode depth=1 for \
zdharma-continuum/history-search-multi-word \
atload"bindkey '^[[A' history-substring-search-up; \
bindkey '^[[B' history-substring-search-down; \
bindkey '^K' history-search-multi-word " \
zsh-users/zsh-history-substring-search
fi