restore PATH under Mac OS X [duplicate]

懵懂的女人 提交于 2019-12-04 06:35:53

问题


Hi guys I tried to add new directory to the PATH, but instead appending I overwrote it. Is there any way to restore those default paths?


回答1:


If you changed your PATH in a Terminal shell, simply close that Terminal window and open a new one. Changes to environment variables are local to the shell in which you change them (and any subshells created by that one).




回答2:


Just restart your terminal that will assign variables based on your .profile or .bashrc ( if you are running bash )



来源:https://stackoverflow.com/questions/5609648/restore-path-under-mac-os-x

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