fix(zshenv): put ~/.local/bin on PATH for every zsh

Non-interactive agent shells (Codex, Claude) skip .zshrc and never saw
user-local tools installed via pipx/uv/grok. Add ~/.local/bin in
.zshenv with an idempotent guard, and source optional
~/.config/zshenv.local for machine-local early env.
This commit is contained in:
Jeffrey
2026-08-06 14:25:52 +08:00
parent 6f6a8ac5f8
commit ed5365859c
4 changed files with 33 additions and 7 deletions
+2 -5
View File
@@ -136,11 +136,8 @@ plugins=(
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Add to PATH to run programs installed with pipx or "pip install --user"
# export PATH=$PATH:~/.local/bin
# To give this path preference instead of system paths to run the latest version of tools, add the following to your personal config. Due to security concerns this is not done by default.
# export PATH=~/.local/bin:$PATH
# ~/.local/bin is added in ~/.zshenv (every zsh, including non-interactive agents).
# Do not re-export it here; keep personal early-env overrides in ~/.config/zshenv.local.
# export PATH=$PATH:~/.config/ezsh/bin