Clean up modules and loading
This commit is contained in:
parent
4af5440511
commit
6c3826e32d
11 changed files with 57 additions and 174 deletions
|
@ -6,17 +6,45 @@ fpath=( "${ZDOTDIR:+$ZDOTDIR/compdef}" "/etc/zsh/compdef" $fpath )
|
|||
|
||||
autoload -Uz compinit && compinit -u
|
||||
|
||||
zstyle ':completion:*' verbose yes
|
||||
zstyle ':completion:*:descriptions' format ‘%B%d%b’
|
||||
zstyle ':completion:*:messages' format ‘%d’
|
||||
zstyle ':completion:*:warnings' format ‘No matches for: %d’
|
||||
zstyle ':completion:*' use-cache on
|
||||
zstyle ':completion:*' cache-path ~/.zsh/cache
|
||||
zstyle ':completion:*' completer _complete _ignored _match _approximate _correct
|
||||
zstyle ':completion:*:match:*' original only
|
||||
zstyle ':completion:*:approximate:*' max-errors 'reply=($((($#PREFIX+$#SUFFIX)/3))numeric)'
|
||||
zstyle ':completion:*:functions' ignored-patterns '_*'
|
||||
zstyle ':completion:*' squeeze-slashes true
|
||||
zstyle ':completion:*' expand prefix suffix
|
||||
zstyle ':completion:*' group-name ''
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
|
||||
zstyle ':completion:*' list-suffixes true
|
||||
zstyle ':completion:*' preserve-prefix '//[^/]##/'
|
||||
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
|
||||
zstyle ':completion:*' special-dirs true
|
||||
zstyle ':completion:*' verbose true
|
||||
zstyle :compinstall filename '/etc/zsh/completion'
|
||||
|
||||
|
||||
# completion for programs with standard gnu --help
|
||||
for prog in amm tapestry; do
|
||||
for prog in amm tapestry virtualenv; do
|
||||
compdef _gnu_generic $prog
|
||||
done
|
||||
|
||||
# custom compdefs
|
||||
|
||||
compdef _xbps xi=xbps-install
|
||||
|
||||
{
|
||||
local _myhosts
|
||||
_myhosts=( $(awk '/^Host/ {for (i=2; i<=NF; i++) print $i}' ~/.ssh/config) )
|
||||
zstyle ':completion:*' hosts $_myhosts
|
||||
}&>/dev/null
|
||||
|
||||
zstyle ':completion:*:processes-names' command 'ps c -u ${USER} -o command | uniq'
|
||||
|
||||
compdef _command fork
|
||||
compdef _command detach
|
||||
compdef _command ontv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue