where is $PATH set? Specifically where is my mac port path being set? [closed]

主宰稳场 提交于 2019-12-01 19:47:08

On my system, MacPorts installer put it into /etc/profile.

The (full?) list of files is as follows (in the order bash reads them):

/etc/profile
/etc/bashrc
~/.bash_profile
~/.bash_login
~/.profile
~/.bashrc

Did you also check /etc/profile or /etc/paths? It seems to me if you commented it out from all the other places, those would be the places where they would be.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!