This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: `Color ls' from a bash$ window
- To: "'gnu-win32 at cygnus dot com'" <gnu-win32 at cygnus dot com>
- Subject: RE: `Color ls' from a bash$ window
- From: John Cook <john dot cook at kla-tencor dot com>
- Date: Wed, 22 Oct 1997 17:04:12 -0700
Hi.
I recommend that you use '--color=auto' instead of '--color'
in your aliases so that ls will produce color output only when
printing to a tty. I once had aliases like those below and
ran into difficulties because ls was putting tty color escape
codes into redirected output. See 'ls --help' for more info.
Also, your 'no extra cost' may vary--I find that ls runs
noticeably slower with color enabled than it does without
color. (I am running the stock b18 gnuwin32 tools--which I
think means I have a build with 'debug' overhead built in--
on a P133 with 64 MB RAM.) I do like the color output;
I just hope the performance improves one of these versions.
--John
>----------
>From: Victor Schneider[SMTP:vischne@ibm.net]
>Sent: Wednesday, October 22, 1997 5:40 AM
>To: gnu-win32@cygnus.com
>Subject: `Color ls' from a bash$ window
>
>At no extra cost, you can get your bash$ window ls listings colorized to
>show directories and executable files. The trick is to store a .bashrc
>file in your root directory. Under W95/WNT, the root directory is either
>c:\ or c:\root (and you can `set HOME=/root' in your autoexec.bat).
>
>Enclosed is a .bashrc file that you can use:
>============================================================================
>alias ls="ls -CF --color"
>alias dir="ls -CF --color"
>alias less="less -aCMrsi"
>ulimit -c 0
>export MM_RUNASROOT=1
>
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".