我对如何设置 $PATH 有一个基本的了解,但是是否有文档完整描述了 Mac OS 获取附加到 $PATH 的所有路径的位置?我知道诸如/etc/profile,/etc/paths和 之类的东西/etc/profile.d,但是还有其他脚本最终会影响 $PATH 的值吗?我对非登录 shell 和登录 shell ( .bashrc, .bash_profile)也不是很熟悉,但我知道基本的区别。
/etc/profile
/etc/paths
/etc/profile.d
.bashrc
.bash_profile
mac bash path macos
bash ×1
mac ×1
macos ×1
path ×1