You are not logged in.
Pages: 1
I want /usr/local/bin to be in my $PATH and doing PATH=$PATH:/usr/local/bin/ does it. however, every once in awhile, I cannot run run scripts and see that /usr/local/bin is no longer in my $PATH. I am not sure why this changes - perhaps when I reboot..?
how can I make sure that /usr/local/bin remains $PATH ?
thanks
Offline
Edit your ~/.bashrc to contain PATH=$PATH:/usr/local/bin
Offline
in ~/.bashrc put export PATH=$PATH:/usr/local/bin/
Give what you have. To someone, it may be better than you dare to think.
Offline
Notice the 'export'. This will allow all spawned shells to inherit the variables set in the parent.
Offline
got it. thanks guys.
Offline
Pages: 1