From bc16666a25ed7d473ac90736ebc707208eae8cbc Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Thu, 23 May 2024 09:53:00 +0700 Subject: [PATCH] fix: Don't bother me if brew is not installed --- .config/zsh/include/completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/include/completion b/.config/zsh/include/completion index 9f42d1e..80ce9bd 100644 --- a/.config/zsh/include/completion +++ b/.config/zsh/include/completion @@ -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