Trying to deal with compinit on zsh from brew

This commit is contained in:
Christian Baer 2020-12-03 11:00:40 +01:00
parent cdec96b6c6
commit 47e3b31fd6
2 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,12 @@ for config_file ($ZDOTDIR/lib/30-*.zsh) source $config_file
(
#Initalize and compile completion cache
autoload -Uz compinit
if [ "$(id -u)" -ne 0 ]; then
compinit -i # Ignore insecure directories
else
compinit
fi
## Compile startup files

View File

@ -10,6 +10,7 @@ WORDCHARS=''
zmodload -i zsh/complist
fpath=($fpath $ZDOTDIR/completions/)
fpath=($fpath /usr/local/share/zsh/)
fpath=($fpath /usr/local/share/zsh/site-functions/)
## case-insensitive (all),partial-word and then substring completion