fix: Ffs mac

This commit is contained in:
Ahmad Ansori Palembani 2024-05-23 09:56:28 +07:00
parent 62940d4a4d
commit a87694e968
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -4,9 +4,11 @@ fpath=(/usr/local/share/zsh-completions $fpath)
autoload -Uz compinit autoload -Uz compinit
if [[ "$OSTYPE" == "darwin"* && "$(which brew)" == "brew not found" ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}" brew >/dev/null 2>/dev/null && {
compinit -u # homebrew moment, not recommended but whatever FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}";
compinit -u; # homebrew moment, not recommended but whatever
}
else else
compinit compinit
fi fi