diff --git a/home/zsh.nix b/home/zsh.nix index ea34979..d3519b3 100644 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -46,7 +46,12 @@ 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 = '' if [ -x "/opt/homebrew/bin/brew" ]; then eval "$(/opt/homebrew/bin/brew shellenv)"