Hi Tim,
      what could 'ls --color=auto' be useful for other than being
neater for not having escape codes? The =auto output in my kdedit
and gedit editors is plain black print.

'ls --color' defaults as 'ls --color=always' so in xterm generally
the two options will work the same.

yes, ll='ls -la' is shorter, thanks.


Slackware's default install uses /etc/profile so I was putting things
in that perspective.

cheers,
Keith.



On Tue, 3 Sep 2002, Timothy Musson wrote:

> I reckon:
>
> alias ls='ls --color=auto'
> alias ll='ls -la'
>
> Have a look at tmp.txt:
>
> /usr/bin/ls --color > tmp.txt
> /usr/bin/ls --color=auto > tmp.txt
>
> _____________________________________________________________________
> > These aliases can be put into /etc/profile or /etc/bashrc but xterm
> > wil not display 'ls' dir_color unless ~/bashrc is pointing to those
> > files.
>
> > if [ -f /etc/profile ] ; then
> > . /etc/profile
> > fi
> _____________________________________________________________________
>
> Usually, ~/.bash_profile (or ~/.profile) sources ~/.bashrc - e.g.:
>
> # ~/.bash_profile
>
> if [ -f "~/.bashrc" ]
> then
>   . ~/.bashrc
> fi
>
>
> Tim
> --
> Timothy Musson  -  [EMAIL PROTECTED]
> http://homepages.ihug.co.nz/~trmusson/
> Who messed with my anti-paranoia shot?
>



Reply via email to