feat(homebrew): load/setup homebrew on Apple Silicon machines

This commit is contained in:
2023-11-20 11:09:38 +00:00
parent db7a97fa6d
commit 10bf02e1b4

5
zshenv
View File

@@ -121,6 +121,11 @@ fi
# Third-party Environment Setup # Third-party Environment Setup
# ============================================================================== # ==============================================================================
# Homebrew on Apple Silicon
if [ -f "/opt/homebrew/bin/brew" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# Linuxbrew # Linuxbrew
if [ -f "/home/linuxbrew/.linuxbrew/bin/brew" ]; then if [ -f "/home/linuxbrew/.linuxbrew/bin/brew" ]; then
# Inline linux-brew setup to improve shell startup speed by around 200ms. # Inline linux-brew setup to improve shell startup speed by around 200ms.