move PATH to .zshenv so non-interactive shells see it

.zshrc only runs for interactive shells — cron, ssh host-command, and
GUI-launched processes never sourced PATH before. Also includes pending
tmux theme/terminal-overrides work and rsync2/wm aliases.
This commit is contained in:
svxf
2026-04-15 22:39:38 +02:00
parent 6612cb02f1
commit 05d975a6c1
3 changed files with 39 additions and 21 deletions

13
.zshenv Normal file
View File

@@ -0,0 +1,13 @@
# .zshenv — sourced for every zsh invocation (interactive, non-interactive, scripts).
# PATH lives here so cron, ssh host-command, and GUI-launched processes see it.
typeset -U path
path=(
/projects/bin
$HOME/.local/bin
$HOME/.cargo/bin
/usr/local/go/bin
$HOME/go/bin
/opt/homebrew/bin
$path
)