From 1167e8ece5386aede4bea01ddaa1751a95e17c4a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 7 Aug 2022 15:38:50 +0200 Subject: zprofile/80_homebrew: invoke correct brew command depending on location --- .zsh/zprofile/80_homebrew | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf