Правка для работы 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
|
||||||
zdharma-continuum/history-search-multi-word \
|
zstyle ":history-search-multi-word" page-size "$(($LINES/2))"
|
||||||
atload"bindkey '^[[A' history-substring-search-up; \
|
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
|
||||||
bindkey '^[[B' history-substring-search-down; \
|
zinit wait'!0' lucid light-mode depth=1 for \
|
||||||
bindkey '^K' history-search-multi-word " \
|
zdharma-continuum/history-search-multi-word \
|
||||||
zsh-users/zsh-history-substring-search
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user