Fix usage in user folder instead of global

This commit is contained in:
crater2150 2019-02-01 11:13:51 +01:00
parent b3e40ed202
commit 24bede8c5c
5 changed files with 35 additions and 12 deletions

View file

@ -1,12 +1,10 @@
# autoload completions
fpath=( "${ZDOTDIR:+ZDOTDIR}/compdef" "/etc/zsh/compdef" $fpath )
autoload -U /etc/zsh/compdef/*(:t)
fpath=( "${ZDOTDIR:+$ZDOTDIR/compdef}" "/etc/zsh/compdef" $fpath )
if [[ -d $ZDOTDIR/compdef ]]; then
autoload -U /etc/zsh/compdef/*(N:t)
fi
[[ -n $(echo /etc/zsh/compdef/*(N:t)) ]] && autoload -U /etc/zsh/compdef/*(N:t)
[[ -n $(echo $ZDOTDIR/compdef/*(N:t)) ]] && autoload -U $ZDOTDIR/compdef/*(N:t)
autoload -Uz compinit && compinit
autoload -Uz compinit && compinit -u
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format %B%d%b