From cdd95a91f534d402f55f35ef75ec3dd6aa5b3686 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 9 Aug 2022 12:51:23 +0200 Subject: zprofile: check brew binary before executing brew shellenv --- .zsh/zprofile/80_homebrew | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.zsh/zprofile/80_homebrew') 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 -- cgit v1.2.3-54-g00ecf