summaryrefslogtreecommitdiff
path: root/.zsh/zprofile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2022-08-09 12:51:23 +0200
committerTobias Klauser <tklauser@distanz.ch>2022-08-09 12:51:23 +0200
commitcdd95a91f534d402f55f35ef75ec3dd6aa5b3686 (patch)
treecaeb23d637935b8d142403be491c2241099de11b /.zsh/zprofile
parent1167e8ece5386aede4bea01ddaa1751a95e17c4a (diff)
zprofile: check brew binary before executing brew shellenv
Diffstat (limited to '.zsh/zprofile')
-rw-r--r--.zsh/zprofile/80_homebrew4
1 files changed, 2 insertions, 2 deletions
diff --git a/.zsh/zprofile/80_homebrew b/.zsh/zprofile/80_homebrew
index 6bae159..ca10df3 100644
--- a/.zsh/zprofile/80_homebrew
+++ b/.zsh/zprofile/80_homebrew
@@ -7,8 +7,8 @@
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git
-if [ -d /opt/homebrew ] ; then
+if [ -d /opt/homebrew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
-else
+elif [ -x /usr/local/bin/brew ]; then
eval "$(/usr/local/bin/brew shellenv)"
fi