diff --git a/homebrew/aliases.zsh b/homebrew/aliases.zsh index dc051a5a8..8bf68caf5 100755 --- a/homebrew/aliases.zsh +++ b/homebrew/aliases.zsh @@ -1,19 +1,20 @@ #!/bin/sh -which brew >/dev/null 2>&1 || return -brew() { - case "$1" in - cleanup) - command brew cleanup - command brew cask cleanup - command brew prune - ;; - bump) - command brew update - command brew upgrade --all - brew cleanup - ;; - *) - command brew "$@" - ;; - esac -} +if which brew >/dev/null 2>&1; then + brew() { + case "$1" in + cleanup) + command brew cleanup + command brew cask cleanup + command brew prune + ;; + bump) + command brew update + command brew upgrade --all + brew cleanup + ;; + *) + command brew "$@" + ;; + esac + } +fi