Re: alias problem under Gnome



On Wed, Jan 24, 2001 at 07:25:42AM -0500 or thereabouts, Mitchell K. Smith wrote:
> Greetings.
> 
> I am running RH 7.0.
> In my /etc/bashrc file I have
> alias ls='ls -Al --color'
> This gives me a long directory listing in color.  It works as long as I am
> not in Gnome.
> If I start Gnome and open a terminal, an ls gives me the usual short
> directory listing.
> I have tried adding the alias to the user profile as well but this has no
> effect.
> Thanks for your help.

gnome-terminal can be started as gnome-terminal --login and
gnome-terminal --nologin. Does this happen with both of those?

If it's not a "is this a login shell or not" problem, then check 
out /etc/profile.d/ as RH has a lot of *.d directories in /etc
and one of the files in /etc/profile.d is 'colorls.sh' (which
I personally loathe and spent ages hunting down to remove, but 
tastes differ :)). It is referred to in the profile and bashrc
files in /etc, so putting your alias in there might be better than
where you have it already.

Telsa





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]