[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: PATH changing in RH7.1
- From: Jason W Elliot <jelliot math cudenver edu>
- To: <redhat-list redhat com>
- Subject: Re: PATH changing in RH7.1
- Date: Sat, 1 Sep 2001 15:36:16 -0600 (MDT)
A while ago I had problems with aliasing ls. I was trying to set an alias
in ~/.bashrc (which is source by ~/.bash_profile) but it wouldn't work. As
it turns out, the alias set in /etc/profile.d/colorls.sh was somehow
happening and the one in ~/.bashrc was not. I'm still not sure exactly why
this was the case, but it seems like /etc/profile.d/colorls.sh must come
after ~/.bashrc. Oddly, even typing "source .bashrc" doesn't fix it; it's
as if /etc/profile.d/colorls.sh were getting sourced by ~/.bashrc, but it
isn't. I ended up setting the alias that I wanted in
/etc/profile.d/colorls.sh (which worked)
On 1 Sep 2001, Trond Eivind Glomsrød wrote:
> Jason W Elliot <jelliot math cudenver edu> writes:
>
> > I see, ...said the blind man. The question here is: what gets sourced
> > when?
>
> For a login shell:
>
> /etc/profile first. At the end of this, /etc/profile.d/*.sh is
> sourced - this makes it possible for packages to drop in path
> additions etc here. After that, it will open the first available of
> ~/.bash_profile, ~/.bash_login or ~/.profile
>
> See bash(1) for more details
>
>
--
Jason W. Elliot
Dept. of Mathematics, University of CO at Denver
http://www-math.cudenver.edu/~jelliot
jelliot math cudenver edu
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]