On Sat, 6 Jan 2001, John P. Verel wrote:

> On 01/06/01, 04:09:42PM -0500, rpjday wrote:
> > On Sat, 6 Jan 2001, John P. Verel wrote:
> >
> > > I note that RH7 preinstalls a few aliases:
> > >
> > > alias l.='ls -d .[a-zA-Z]* --color=tty'
> > > alias ll='ls -l --color=tty'
> > > alias ls='ls --color=tty'
> > > alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot
> > > --show-tilde'
> > >
> > > I'm trying to find from where they are loaded, having looked in all the
> > > obvious bash files.
> > >
> > > Anyone?  TIA
> > >
> > cat /etc/profile.d/colorls.sh
> >
> > and in response to your next question, the code at the bottom of
> > /etc/profile executes the scripts /etc/profile.d/*.sh
> >
> > rday
> >
> Merci!  But where does the 'which' alias come from?

now, now, pay attention.  note that the code in /etc/profile
sources *all* of the files of the form /etc/profile.d/*.sh.
the rest i leave as an exercise for the reader.

rday

-- 
Robert P. J. Day
Eno River Technologies, Durham NC
Unix, Linux and Open Source training


"This is Microsoft technical support.  How may I misinform you?"



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to