~/bin not added to path

Sam Tygier samtygier at yahoo.co.uk
Thu Apr 14 20:24:43 UTC 2005


i put the line

export PATH=$PATH:/home/sam/bin

in .bashrc

works for me

also i uncommented the bit at the bottom

if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

so that i get tab completion with sudo.

sam

Christoph Sturm wrote:
> hey guys!
> 
> I am probably missing something obvious here, but i am expiriencing a
> strange effect:
> I have created a bin directory in my home directory, and had the
> expectation that this snippet from .bash_profile would add it to the
> path:
> if [ -d ~/bin ] ; then
>     PATH=~/bin:"${PATH}"
> fi
> 
> but after logging into gnome its not added.
> when i do "su - chris", it works. 
> 
> Is that "by design" or a bug?
> 
> thanks
>  chris






More information about the ubuntu-users mailing list