Trying to deal with compinit on zsh from brew
This commit is contained in:
parent
cdec96b6c6
commit
47e3b31fd6
@ -7,7 +7,12 @@ for config_file ($ZDOTDIR/lib/30-*.zsh) source $config_file
|
|||||||
(
|
(
|
||||||
#Initalize and compile completion cache
|
#Initalize and compile completion cache
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
|
||||||
|
if [ "$(id -u)" -ne 0 ]; then
|
||||||
|
compinit -i # Ignore insecure directories
|
||||||
|
else
|
||||||
|
compinit
|
||||||
|
fi
|
||||||
|
|
||||||
## Compile startup files
|
## Compile startup files
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ WORDCHARS=''
|
|||||||
|
|
||||||
zmodload -i zsh/complist
|
zmodload -i zsh/complist
|
||||||
fpath=($fpath $ZDOTDIR/completions/)
|
fpath=($fpath $ZDOTDIR/completions/)
|
||||||
|
fpath=($fpath /usr/local/share/zsh/)
|
||||||
fpath=($fpath /usr/local/share/zsh/site-functions/)
|
fpath=($fpath /usr/local/share/zsh/site-functions/)
|
||||||
|
|
||||||
## case-insensitive (all),partial-word and then substring completion
|
## case-insensitive (all),partial-word and then substring completion
|
||||||
|
Loading…
Reference in New Issue
Block a user