On Wed, 2007-10-17 at 19:43 -0400, François Pinard wrote:
> [Bryen]
> >Is there a way to disable color coding in the 'ls' command permanently?
>
> Short of modifying and recompiling the code (from GNU coreutils), you
> might add something like this (untested) in your ~/.bashrc file:
>
> ls() { /bin/ls --color=none "$@"; }
>
> and then, you should not get colors when working interactively.
>
I tried that line and it didn't work, tried it in various tinkerings and
it still didn't work. Then again, you did say "untested." :-)
Regardless, you all pointed me in the right direction and I was able to
locate the LS color section in /etc/bash.bashrc. I changed the
following:
if test "${LS_COLORS+empty}" = "${LS_COLORS:+empty}" ; then
LS_OPTIONS=--color=tty <--- (CHANGED TTY TO NONE)
That did the trick. I suppose I should follow Patrick's suggestion and
copy the entire LS section to bash.bashrc.local so I won't lose my
changes in an update.
This seems less volatile than creating an empty LS_Colors file and
losing all those other colors for another user.
Thanks for all your help.
>
> ---Bryen---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]