Set Environment Variable

Sean Sieger sean.sieger at gmail.com
Sun Jul 10 02:30:03 UTC 2005


Steve Feehan <sfeehan at sbb.uvm.edu> writes:

> On Sat, Jul 09, 2005 at 09:43:32PM -0400, Sean Sieger wrote:
>> How do I add ~/bin to $PATH ?
>> -- 
>> Sean Sieger
>
> The default .bash_profile (copied from /etc/skel when accounts
> are created) already does this:
>
>   # set PATH so it includes user's private bin if it exists
>   if [ -d ~/bin ] ; then
>       PATH=~/bin:"${PATH}"
>   fi
>
> But the directory has to already exist or the test fails.
>
> -- 
> Steve Feehan
>
Why thank you, sir.
-- 
Sean Sieger




More information about the ubuntu-users mailing list