fix: move brew shellenv to envExtra for PATH, use initExtra for prompt

This commit is contained in:
mikl 2026-06-29 19:35:51 +03:00
parent 65f8b01287
commit c0d4a0df41

View file

@ -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