在 Mac Catalina 和 osx 版本中,终端使用 zsh,有一个系统范围的配置文件/etc/zprofile。
Cat/etc/zprofile
# System-wide profile for interactive zsh(1) login shells.
# Setup user specific overrides for this in ~/.zprofile. See zshbuiltins(1)
# and zshoptions(1) for more details.
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi