How do I change PATH?
How do I change PATH so that it stays that way? When I change PATH with "PATH=/mydir:$PATH" it just stays like that until I close the gnome-terminal window. I don't want to make a thousand shellscripts in a PATH directory that boot my program. So...how do I do it?
|
Edit your ~/.bashrc and see to that it's sourced from ~/.bash_profile (to make it apply at all times). Add something like this:
Code:
PATH=$PATH:/first/location:/second/location Håkan |
thank you very much (tack så mycket) :). If I want this to apply to all accounts I just edit PATH in /etc/login.defs or...?
|
You can go ahead and add that line to /etc/profile or something along those lines as well.
Håkan |
/etc/profile
|
All times are GMT -5. The time now is 10:48 PM. |