fix: Ffs mac
This commit is contained in:
parent
62940d4a4d
commit
a87694e968
1 changed files with 5 additions and 3 deletions
|
@ -4,9 +4,11 @@ fpath=(/usr/local/share/zsh-completions $fpath)
|
|||
|
||||
autoload -Uz compinit
|
||||
|
||||
if [[ "$OSTYPE" == "darwin"* && "$(which brew)" == "brew not found" ]]; then
|
||||
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
||||
compinit -u # homebrew moment, not recommended but whatever
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
brew >/dev/null 2>/dev/null && {
|
||||
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}";
|
||||
compinit -u; # homebrew moment, not recommended but whatever
|
||||
}
|
||||
else
|
||||
compinit
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue