From: pki@cri.dk (Paul Kirkaas)
Subject: Re: `Color ls' from a bash$ window
23 Oct 1997 05:35:33 -0700
Message-ID: <XFMail.971023125443.pki.cygnus.gnu-win32@cri.dk>
References: <344E7D10.FDC6785D@wgn.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
To: gnu-win32@cygnus.com

On 22-Oct-97 "$Bill Luebkert" wrote:
> Victor Schneider wrote:
>> 
>> At no extra cost, you can get your bash$ window ls listings colorized
>> Enclosed is a .bashrc file that you can use:
>> ========================================================================
>> alias ls="ls -CF --color"
 
> In my experience is is a bad idea to alias a command to itself (with
> args), 
> it has caused me problems in the past and I have quite doing it.
> 
> Alias l to ls and m to less or some such.

Or, what I do, which works okay, is to use functions -- like:
............
function  fcd () { pushd . > /dev/null ; \cd $1 ; PS1="$LOGNAME$ANGLE " ;
setlabels ; }

alias cd=fcd
...............
Note of couse the escaped \cd in the function call.

Paul
-- 
Paul Kirkaas
pki@cri.dk
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
