I was trying to add something to $PATH and it went totally wrong. I now can't run any commands such as ls. I've looked at this answer and used the following lines:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
PATH=$PATH:~/bin
These lines fix the problem temorarily; however, when I restart terminal it seems to forget these changes.
How do I permanently reset my $PATH?
I'm running the most recent version of Mountain Lion.
/bin/rm ~/.bash_profile– Nosrettap Jan 18 at 22:03/etc/paths– BigDave Jan 21 at 12:37