2018-01-22 12:09:53 +00:00
|
|
|
|
# autoload completions
|
2018-03-11 11:19:47 +00:00
|
|
|
|
fpath=( "${ZDOTDIR:+ZDOTDIR}/compdef" "/etc/zsh/compdef" $fpath )
|
2018-01-22 12:09:53 +00:00
|
|
|
|
autoload -U /etc/zsh/compdef/*(:t)
|
|
|
|
|
|
|
|
|
|
if [[ -d $ZDOTDIR/compdef ]]; then
|
|
|
|
|
autoload -U /etc/zsh/compdef/*(N:t)
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
autoload -Uz compinit && compinit
|
|
|
|
|
|
|
|
|
|
zstyle ':completion:*' verbose yes
|
|
|
|
|
zstyle ':completion:*:descriptions' format ‘%B%d%b’
|
|
|
|
|
zstyle ':completion:*:messages' format ‘%d’
|
|
|
|
|
zstyle ':completion:*:warnings' format ‘No matches for: %d’
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# completion for programs with standard gnu --help
|
|
|
|
|
for prog in amm tapestry; do
|
|
|
|
|
compdef _gnu_generic $prog
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# custom compdefs
|
|
|
|
|
|
|
|
|
|
compdef _xbps xi=xbps-install
|