I stuffed up (basically wiped) my PATH variable.
Is there any way to reset it to the default?
I look at How do I reset the $PATH variable on Mac OS X?, but I find it very confusing. As far as I know I stuffed up my ~/.profile
file.
command linemacospathterminal
I stuffed up (basically wiped) my PATH variable.
Is there any way to reset it to the default?
I look at How do I reset the $PATH variable on Mac OS X?, but I find it very confusing. As far as I know I stuffed up my ~/.profile
file.
Best Answer
I have the following in my
~/.profile
:The first
PATH
declaration overrides any existingPATH
setting (it doesn't include$PATH
). The path used is the OS X default.The second line appends
~/bin
to thePATH
and it is a personal preference, not a default.After edit, restart your session — or use command
source ~/.profile
to activate the changes immediately.