[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:
Fabian IsingandClaude Opus 5.5 committed 2026-10-07 16:53:07 +02:00
1 parent 711da8058c
commit 47759491ee
2 files changed
+9 -1

No files matched your search

+7
View File
@@ -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