use brew everywhere

This commit is contained in:
2026-02-17 21:14:24 -08:00
parent 76aaedc3f9
commit 46da64f7ed
2 changed files with 21 additions and 31 deletions

View File

@@ -61,8 +61,13 @@ fi
if [ "$(uname)" = "Darwin" ]; then
# set up iterm integration
[[ -f ~/.iterm2_shell_integration.zsh ]] && source ~/.iterm2_shell_integration.zsh
# source homebrew
fi
# Homebrew (macOS: /opt/homebrew, Linux: /home/linuxbrew/.linuxbrew)
if [[ -x /opt/homebrew/bin/brew ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
elif [[ -x /home/linuxbrew/.linuxbrew/bin/brew ]]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
# Plugins (cloned into ~/.zsh/plugins by setup.sh)