fix(shell): restore always-on PATH after macOS path_helper

path_helper runs after ~/.zshenv in login shells and puts Homebrew ahead of
fnm, pyenv, and ~/.local/bin. Re-source ~/.zshenv from ~/.zprofile and make
prepends idempotent so login and zsh -c resolve the same binaries.
This commit is contained in:
Frank Qing committed 2026-09-07 22:07:58 +08:00
1 parent 82c6a57c3a
commit 34d11b5aa4
8 files changed
+198 -73

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
# easyzsh: reapply always-on PATH after macOS path_helper
# Login shells only. /etc/zprofile runs path_helper after ~/.zshenv and puts
# Homebrew and system paths ahead of fnm, pyenv, and ~/.local/bin.
# ~/.zshenv prepends are idempotent, so re-sourcing restores that order.
if [[ -x /usr/libexec/path_helper ]]; then
. "${ZDOTDIR:-$HOME}/.zshenv"
fi