path

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: Path/.bashrc - aliases/scripts
From: taj@cyber-wizard.com
Date: Thu, 20 May 1999 12:30:11 -0700 (PDT)


On Wed, 5 Jan 2000 mepr@ilnk.com wrote:

> The idea is to put an alias for each script in .bash_profile.  There
> is probably a "correct" place to put aliases, and I would like to know
> what it is.

The proper place is .bashrc. If you want something to be universal, place
it in /etc/bashrc, which is automatically sourced by the default .bashrc
in /etc/skel (and by extension in your users' ~/.bashrc).

===

Subject: Re: Where does PATH get initialized?
From: Steve Borho <sborho@ststech.com>
Date: Wed, 16 Jun 1999 09:58:07 -0500


On Wed, Jun 16, 1999 at 09:55:39AM +0100, Hans Juergen von Lengerke wrote:
> I've got this minor annoyance where my PATH environment variable contains
> /usr/bin twice:
> 
> [hans]$ printenv PATH
> /usr/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/hans/bin:.
> 
> I've grepped everything in my home directory and in /etc
> to see where /usr/bin gets set but couldn't find any. ~/.bash_profile sets
> $PATH:$HOME/bin:. and /etc/profile sets $PATH:/usr/X11R6/bin. However, I
> have no idea where the rest of the path gets initialize (I'm assuming that
> it gets initialized before /etc/profile is read).
> 
> Any pointers would be greatly appreciated.

did you look in /etc/profile.d?

===

Subject: Re: Where does PATH get initialized?
From: Steve Borho <sborho@ststech.com>
Date: Wed, 16 Jun 1999 15:05:32 -0500


On Wed, Jun 16, 1999 at 05:56:04PM +0100, Hans Juergen von Lengerke wrote:
> On Wed, 16 Jun 1999, Steve Borho wrote:
> 
> > did you look in /etc/profile.d?
> 
> Yep. Nothing :-(
> 
> [hans]$ ls /etc/profile.d
> kde.csh  kde.sh  lang.sh
> [hans]$ grep -i path /etc/profile.d/*                 
> /etc/profile.d/kde.csh:setenv PATH "${KDEDIR}/bin:${PATH}"
> /etc/profile.d/kde.sh:  PATH="$KDEDIR/bin:$PATH"
> /etc/profile.d/kde.sh:export  KDEDIR PATH
> [hans]$

Under RH 6.0, isn't KDEDIR=/usr?

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu