From c0d4a0df417fed92b86f00ea45541a568d1a6ce1 Mon Sep 17 00:00:00 2001 From: mikl Date: Mon, 29 Jun 2026 19:35:51 +0300 Subject: [PATCH] fix: move brew shellenv to envExtra for PATH, use initExtra for prompt --- home/zsh.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/home/zsh.nix b/home/zsh.nix index a2e3fb4..ea34979 100644 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -46,10 +46,19 @@ ff = "fastfetch"; }; - # Init content - runs on shell start - initContent = '' + # Environment setup BEFORE everything else (fixes PATH issues) + envExtra = '' + if [ -x "/opt/homebrew/bin/brew" ]; then + eval "$(/opt/homebrew/bin/brew shellenv)" + fi + ''; + + # Init content - runs on shell start (after PATH is set) + initExtra = '' # Show fastfetch on shell start + echo fastfetch + echo # Load pure prompt autoload -U promptinit; promptinit