Правка для работы MC в сессии SSH
This commit is contained in:
parent
fb5782101b
commit
193684d640
@ -33,12 +33,16 @@ zinit wait'!0' lucid light-mode depth=1 for \
|
|||||||
atload"!_zsh_autosuggest_start" \
|
atload"!_zsh_autosuggest_start" \
|
||||||
zsh-users/zsh-autosuggestions
|
zsh-users/zsh-autosuggestions
|
||||||
|
|
||||||
zstyle ":history-search-multi-word" page-size "$(($LINES/2))"
|
if [ -n ${ZSH_MC_SUBSHELL+set} ] && [ -n ${SSH_CONNECTION+set} ]; then
|
||||||
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
|
zinit load zsh-users/zsh-history-substring-search
|
||||||
zinit wait'!0' lucid light-mode depth=1 for \
|
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 \
|
zdharma-continuum/history-search-multi-word \
|
||||||
atload"bindkey '^[[A' history-substring-search-up; \
|
atload"bindkey '^[[A' history-substring-search-up; \
|
||||||
bindkey '^[[B' history-substring-search-down; \
|
bindkey '^[[B' history-substring-search-down; \
|
||||||
bindkey '^K' history-search-multi-word " \
|
bindkey '^K' history-search-multi-word " \
|
||||||
zsh-users/zsh-history-substring-search
|
zsh-users/zsh-history-substring-search
|
||||||
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user