fix: move brew shellenv to envExtra for PATH, use initExtra for prompt
This commit is contained in:
parent
65f8b01287
commit
c0d4a0df41
1 changed files with 11 additions and 2 deletions
13
home/zsh.nix
13
home/zsh.nix
|
|
@ -46,10 +46,19 @@
|
||||||
ff = "fastfetch";
|
ff = "fastfetch";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Init content - runs on shell start
|
# Environment setup BEFORE everything else (fixes PATH issues)
|
||||||
initContent = ''
|
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
|
# Show fastfetch on shell start
|
||||||
|
echo
|
||||||
fastfetch
|
fastfetch
|
||||||
|
echo
|
||||||
|
|
||||||
# Load pure prompt
|
# Load pure prompt
|
||||||
autoload -U promptinit; promptinit
|
autoload -U promptinit; promptinit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue