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.
8 lines
353 B
Bash
8 lines
353 B
Bash
# 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
|