Reputation: 362
In the last couple of days my terminal has been saying
-bash: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin: No such file or directory
However, all of the above do exist. I was playing around with $PATH
variable last week but the error I am now getting appeared days after I stopped playing with the $PATH
variable.
Here are the contents of my .bash_profile that I was playing about with too:
Upvotes: 3
Views: 17552
Reputation: 81052
The first line of your .bash_profile
is the problem.
That line is attempting to run /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
as a command which causes the error you see when you start the shell.
Remove that line and the error should go away.
Upvotes: 3