You are not logged in.

#1 2008-01-15 21:27:17

bionnaki
Member
Registered: 2006-09-05
Posts: 289

$path

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

#2 2008-01-15 21:32:01

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: $path

Edit your ~/.bashrc to contain PATH=$PATH:/usr/local/bin

Offline

#3 2008-01-15 21:32:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: $path

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

#4 2008-01-16 01:05:01

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: $path

Notice the 'export'. This will allow all spawned shells to inherit the variables set in the parent.

Offline

#5 2008-01-16 01:36:59

bionnaki
Member
Registered: 2006-09-05
Posts: 289

Re: $path

got it. thanks guys.

Offline

Board footer

Powered by FluxBB