diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2022-08-07 15:38:50 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2022-08-07 15:38:50 +0200 |
commit | 1167e8ece5386aede4bea01ddaa1751a95e17c4a (patch) | |
tree | dc444b482fc5cbdd1b0c6fb32d47815a151d2d0e | |
parent | 93369e7033efede5cb12781de1c7303b58822d4f (diff) |
zprofile/80_homebrew: invoke correct brew command depending on location
-rw-r--r-- | .zsh/zprofile/80_homebrew | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.zsh/zprofile/80_homebrew b/.zsh/zprofile/80_homebrew index 13150f7..6bae159 100644 --- a/.zsh/zprofile/80_homebrew +++ b/.zsh/zprofile/80_homebrew @@ -7,4 +7,8 @@ # # Source repository: git://git.distanz.ch/dotfiles/zsh.git -eval "$(/opt/homebrew/bin/brew shellenv)" +if [ -d /opt/homebrew ] ; then + eval "$(/opt/homebrew/bin/brew shellenv)" +else + eval "$(/usr/local/bin/brew shellenv)" +fi |