zsh completions
This commit is contained in:
parent
bd473085a7
commit
dca27bca1f
@ -1,20 +1,16 @@
|
|||||||
|
|
||||||
# enable completion features
|
# enable completion features
|
||||||
fpath=(~/.zfunc $fpath)
|
fpath=(~/.zfunc $fpath)
|
||||||
zmodload zsh/complist
|
zmodload zsh/complist
|
||||||
setopt menucomplete
|
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit -d ~/.cache/zsh/.zcompdump
|
compinit -d ~/.cache/zsh/.zcompdump
|
||||||
|
|
||||||
zstyle ':completion:*' use-cache on
|
zstyle ':completion:*' use-cache on
|
||||||
zstyle ':completion:*' cache-path "${HOME}/.cache/zsh/.zcompcache"
|
zstyle ':completion:*' cache-path "${HOME}/.cache/zsh/.zcompcache"
|
||||||
zstyle ':completion:*' menu yes select
|
zstyle ':completion:*' menu select
|
||||||
zstyle ':completion:*' auto-description 'specify: %d'
|
zstyle ':completion:*' auto-description 'specify: %d'
|
||||||
zstyle ':completion:*' completer _expand _complete _correct _approximate
|
|
||||||
zstyle ':completion:*' format 'Completing %d'
|
zstyle ':completion:*' format 'Completing %d'
|
||||||
zstyle ':completion:*' group-name ''
|
zstyle ':completion:*' group-name ''
|
||||||
zstyle ':completion:*' list-colors ''
|
zstyle ':completion:*' list-colors ''
|
||||||
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
|
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||||
zstyle ':completion:*' rehash true
|
zstyle ':completion:*' rehash true
|
||||||
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
||||||
@ -25,7 +21,7 @@ zstyle ':completion:*:*:extract:*' file-patterns '*.tar* *.lzma *.bz2 *.zip *.7z
|
|||||||
zstyle ':completion:*' complete-options true
|
zstyle ':completion:*' complete-options true
|
||||||
zstyle ':completion:*' squeeze-slashes true
|
zstyle ':completion:*' squeeze-slashes true
|
||||||
|
|
||||||
zstyle ':completion:*' completer _complete _match _approximate
|
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate _prefix _list
|
||||||
zstyle ':completion:*:match:*' original only
|
zstyle ':completion:*:match:*' original only
|
||||||
zstyle ':completion:*:approximate:*' max-errors 1 numeric
|
zstyle ':completion:*:approximate:*' max-errors 1 numeric
|
||||||
|
|
||||||
@ -39,7 +35,6 @@ zstyle ':completion:*:cd:*' ignore-parents parent pwd
|
|||||||
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
|
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
|
||||||
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
|
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
|
||||||
|
|
||||||
zstyle ':autocomplete:*' insert-unambiguous true
|
|
||||||
|
|
||||||
compdef _directories _d
|
compdef _directories _d
|
||||||
compdef _files _f
|
compdef _files _f
|
||||||
@ -58,3 +53,5 @@ bindkey -M menuselect '^M' check-command
|
|||||||
setopt list_packed
|
setopt list_packed
|
||||||
setopt always_to_end
|
setopt always_to_end
|
||||||
setopt auto_param_slash
|
setopt auto_param_slash
|
||||||
|
setopt autolist
|
||||||
|
unsetopt menu_complete
|
||||||
Loading…
x
Reference in New Issue
Block a user