diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2022-08-09 12:51:23 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2022-08-09 12:51:23 +0200 |
commit | cdd95a91f534d402f55f35ef75ec3dd6aa5b3686 (patch) | |
tree | caeb23d637935b8d142403be491c2241099de11b | |
parent | 1167e8ece5386aede4bea01ddaa1751a95e17c4a (diff) |
zprofile: check brew binary before executing brew shellenv
-rw-r--r-- | .zsh/zprofile/80_homebrew | 4 |
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 |