fix: add initExtraFirst with basic PATH for brew and system binaries
This commit is contained in:
parent
c0d4a0df41
commit
af14e5d38e
1 changed files with 6 additions and 1 deletions
|
|
@ -46,7 +46,12 @@
|
||||||
ff = "fastfetch";
|
ff = "fastfetch";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Environment setup BEFORE everything else (fixes PATH issues)
|
# Fix PATH at the very beginning of .zshrc
|
||||||
|
initExtraFirst = ''
|
||||||
|
export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:$PATH"
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Environment setup (zshenv)
|
||||||
envExtra = ''
|
envExtra = ''
|
||||||
if [ -x "/opt/homebrew/bin/brew" ]; then
|
if [ -x "/opt/homebrew/bin/brew" ]; then
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue