问题
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