diff --git a/zshrc b/zshrc index b28b88ffd3..4cf952da72 100644 --- a/zshrc +++ b/zshrc @@ -34,7 +34,11 @@ _load_settings() { } _load_settings "$HOME/.zsh/configs" -eval "$(/opt/homebrew/bin/brew shellenv)" +if [ -x /opt/homebrew/bin/brew ]; then + eval "$(/opt/homebrew/bin/brew shellenv)" +elif [ -x /usr/local/bin/brew ]; then + eval "$(/usr/local/bin/brew shellenv)" +fi export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"