[ZSH] Add .zprofile for brew in login shells, fix mac_config link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
711da8058c
commit
47759491ee
2 files changed
+9
-1
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# Login shells that skip .zshrc (e.g. `su - user -c cmd`) still need brew on PATH.
|
||||
# Interactive shells rebuild PATH order later in .zshrc.
|
||||
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
|
||||
Reference in new issue
Block a user