【笔记】MacOS环境变量优先级 发表于 2023-04-16 更新于 2025-12-26 阅读次数: 前言MacOS环境变量优先级 Bash Shell Mojave 10.14 及以下默认使用 Bash Shell /etc/profile=>/etc/paths=>/etc/paths.d/*.sh=>~/.bash_profile=>~/.bash_login=>~/.profile=>~/.bashrc ZShell Catalina 10.15 及以上默认使用 ZShell /etc/profile=>/etc/paths=>/etc/paths.d/*.sh=>/etc/zshrc=>~/.zprofile=>~/.zshrc 完成参考文献CSDN——Action_Wang简书——TangFly