Настройка дополнения
This commit is contained in:
parent
19280ec6fc
commit
5773b855f3
5
.zshrc
5
.zshrc
@ -5,12 +5,13 @@ for S in \
|
|||||||
05-start \
|
05-start \
|
||||||
15-options \
|
15-options \
|
||||||
25-history \
|
25-history \
|
||||||
41-zinit \
|
42-zinit \
|
||||||
45-plugins \
|
45-plugins \
|
||||||
55-agents \
|
55-agents \
|
||||||
65-scripts \
|
65-scripts \
|
||||||
75-aliases \
|
75-aliases \
|
||||||
85-completion \
|
82-completion \
|
||||||
|
85-keybindings \
|
||||||
88-prompt \
|
88-prompt \
|
||||||
95-finish
|
95-finish
|
||||||
do
|
do
|
||||||
|
@ -33,7 +33,6 @@ zinit light joshskidmore/zsh-fzf-history-search
|
|||||||
if command -v git > /dev/null 2>&1; then
|
if command -v git > /dev/null 2>&1; then
|
||||||
GIT_AUTO_FETCH_INTERVAL=3600
|
GIT_AUTO_FETCH_INTERVAL=3600
|
||||||
zinit snippet OMZP::git
|
zinit snippet OMZP::git
|
||||||
zinit snippet OMZP::gitfast
|
|
||||||
zinit snippet OMZP::git-extras
|
zinit snippet OMZP::git-extras
|
||||||
zinit snippet OMZP::github
|
zinit snippet OMZP::github
|
||||||
[ -z ${SSH_CONNECTION+set} ] && zinit snippet OMZP::git-auto-fetch
|
[ -z ${SSH_CONNECTION+set} ] && zinit snippet OMZP::git-auto-fetch
|
||||||
|
@ -23,15 +23,18 @@ zstyle ':completion:*:(ssh|scp|rsync):*:hosts-host' ignored-patterns '*.*' loo
|
|||||||
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^*.*' '*@*'
|
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^*.*' '*@*'
|
||||||
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^<->.<->.<->.<->' '127.0.0.<->'
|
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^<->.<->.<->.<->' '127.0.0.<->'
|
||||||
|
|
||||||
if is-at-least 5.7; then
|
# marlonrichert/zsh-autocomplete
|
||||||
zstyle ':autocomplete:*' min-input 2
|
|
||||||
zstyle ':autocomplete:*' fzf-completion yes
|
zinit wait lucid for \
|
||||||
zinit light marlonrichert/zsh-autocomplete
|
atinit"ZINIT[COMPINIT_OPTS]=-C; zicompinit; zicdreplay" \
|
||||||
else
|
zdharma-continuum/fast-syntax-highlighting \
|
||||||
zinit wait lucid light-mode for \
|
blockf \
|
||||||
atinit"zicompinit; zicdreplay" zdharma-continuum/fast-syntax-highlighting \
|
zsh-users/zsh-completions \
|
||||||
atload"_zsh_autosuggest_start" zsh-users/zsh-autosuggestions \
|
atload"!_zsh_autosuggest_start" \
|
||||||
blockf atpull'zinit creinstall -q .' zsh-users/zsh-completions
|
zsh-users/zsh-autosuggestions
|
||||||
zinit load zsh-users/zsh-history-substring-search
|
|
||||||
fi
|
zstyle ":history-search-multi-word" page-size "$(($LINES/2))"
|
||||||
|
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
|
||||||
|
zinit load zdharma-continuum/history-search-multi-word
|
||||||
|
bindkey "^K" history-search-multi-word
|
||||||
|
|
5
85-keybindings.zsh
Normal file
5
85-keybindings.zsh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Defined shortcut keys: [Esc] [Esc]
|
||||||
|
bindkey -M emacs '\e\e' send-break
|
||||||
|
bindkey -M vicmd '\e\e' send-break
|
||||||
|
bindkey -M viins '\e\e' send-break
|
||||||
|
|
Loading…
Reference in New Issue
Block a user