From af14e5d38e64ecd01fc8d17055af1f76f247d69f Mon Sep 17 00:00:00 2001 From: mikl Date: Wed, 1 Jul 2026 00:30:00 +0300 Subject: [PATCH] fix: add initExtraFirst with basic PATH for brew and system binaries --- home/zsh.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)"