Re: listing directory contents with color

2003-08-20 Thread David Z Maze
Alphonse Ogulla <[EMAIL PROTECTED]> writes: > How do I get ls to list directory contents with color without passing the > --color option everytime? My shell dotfiles (for zsh, but this should work for any modern Bourne shell) have: ls() { /bin/ls --color --classify "$@"; } which implements t

Re: listing directory contents with color

2003-08-20 Thread Alphonse Ogulla
On Wednesday 20 August 2003 14:34, Johann Koenig wrote: > On Wed, 20 Aug 2003 13:49:01 +0300 > > Alphonse Ogulla <[EMAIL PROTECTED]> wrote: > > How do I get ls to list directory contents with color without passing > > the --color option everytime? > > Edit your ~/.bashrc (/etc/skel/.bashrc for all

Re: listing directory contents with color

2003-08-20 Thread Colin Watson
On Wed, Aug 20, 2003 at 01:49:01PM +0300, Alphonse Ogulla wrote: > How do I get ls to list directory contents with color without passing the > --color option everytime? alias ls='ls --color=auto' Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE,

Re: listing directory contents with color

2003-08-20 Thread Damien Solley
On Wed, 2003-08-20 at 20:49, Alphonse Ogulla wrote: > How do I get ls to list directory contents with color without passing the > --color option everytime? > > -- > Alphonse Ogulla > Nairobi, Kenya In your ~/.bashrc file, add the line: alias ls='ls --color' -- ~~~

Re: listing directory contents with color

2003-08-20 Thread Nicos Gollan
On Wednesday 20 August 2003 12:49, Alphonse Ogulla wrote: > How do I get ls to list directory contents with color without passing the > --color option everytime? Have a look at your ~/.bashrc and ~/.bash_profile. In .bash_profile you'll have to uncomment the block for inclusion of the .bashrc.

Re: listing directory contents with color

2003-08-20 Thread Johann Koenig
On Wed, 20 Aug 2003 13:49:01 +0300 Alphonse Ogulla <[EMAIL PROTECTED]> wrote: > How do I get ls to list directory contents with color without passing > the --color option everytime? Edit your ~/.bashrc (/etc/skel/.bashrc for all new users) and your ~/.bash_profile (/etc/skel/.bash_profile for all