[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to add a new dir to my PATH?



2006/2/5, Bruno Buys <brunobuys@gmail.com>:
> I am trying to figure out which file I shall edit, in order to add an
> extra dir to my PATH ($HOME/bin).
> If I log on to my debian sarge in text mode, my .bash_profile is read.
> If I log right to X (kdm), it doesn't. The same happens to .bashrc.
> Thanks!

Hi,

you should edit your .bash_profile, to add what you want just write:

PATH=/other_paths:$HOME/bin

or you could use export:

export PATH=$PATH:$HOME/bin

that is in the shell

Cheers,
Sergio

---
http://biorobotics.fi-p.unam.mx


--
"Meine Hoffnung soll mich leiten
Durch die Tage ohne Dich
Und die Liebe soll mich tragen
Wenn der Schmerz die Hoffnung bricht"



Reply to: