fix: Don't bother me if brew is not installed

This commit is contained in:
Ahmad Ansori Palembani 2024-05-23 09:53:00 +07:00
parent d0cfdbbbf3
commit bc16666a25
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

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