Set Environment Variable

Sean Sieger sean.sieger at gmail.com
Sun Jul 10 03:16:35 UTC 2005


Dogmeat <ulist at gs1.ubuntuforums.org> writes:

> like this:
>
>
> Code:
> --------------------
>     PATH=$PATH:~/bin
> --------------------
>  
>
>
>
> To make it permanent, you should add this line to .bashrc, which is in
> your ~!
>
>
>
> EDIT: About Steve's post: I have a ~/bin folder and .bash_profile
> didn't add ~/bin to the folder. However, .bash_profile is there and has
> the code, it just isnt being executed:
>
>
>
>
> Code:
> --------------------
>     # set PATH so it includes user's private bin if it exists
>
>   if [ -d ~/bin ] ; then
>
>   PATH=~/bin:"${PATH}"
>
>   fi
> --------------------
>
>
> -- 
> Dogmeat
>
Right, right. It says at the top of .bash_profile,

"# ~/.bash_profile: executed by bash(1) for login shells."
-- 
Sean Sieger




More information about the ubuntu-users mailing list