Set Environment Variable

Steve Feehan sfeehan at
Sun Jul 10 02:16:26 UTC 2005

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

But the directory has to already exist or the test fails.

Steve Feehan

More information about the ubuntu-users mailing list