diff --git a/.config/zsh/include/completion b/.config/zsh/include/completion index 153e38c..56cdff9 100644 --- a/.config/zsh/include/completion +++ b/.config/zsh/include/completion @@ -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