[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls --color feature request: ordinary files uncoloured
From: |
Andreas Schwab |
Subject: |
Re: ls --color feature request: ordinary files uncoloured |
Date: |
Thu, 15 Jan 2004 11:03:13 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) |
"Mark Galbraith" <address@hidden> writes:
> Actually, I prefer the current behavior. If for some reason my terminal
> gets into a strange mode where the color of the text is changed and
> difficult to read, all I need to do is run an 'ls' command, and the
> colors will be restored to normal.
If you put the attribute-restoring escape sequence in the shell prompt
you don't even need to run any command at all.
Eg. in bash:
PS1="...\[$(tput sgr0)\]..."
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."