Fix usage in user folder instead of global
This commit is contained in:
parent
b3e40ed202
commit
24bede8c5c
5 changed files with 35 additions and 12 deletions
|
@ -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’
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue