Re: [PATCH 1/8] Import $LS_COLORS parsing code from coreutils
- From
David Tran <unsignedzero@gmail.com>
- Date
- Mar 20, 2014, 19:09 UTC
- Message-ID
- <loom.20140320T200517-726@post.gmane.org>
- In-Reply-To
- <1395310551-23201-2-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds <at> gmail.com> writes:
Show 7 quoted lines
> This could could help highlight files in ls-files or status output, or > even diff --name-only (but that's questionable). > > This code is from coreutils.git commit > 7326d1f1a67edf21947ae98194f98c38b6e9e527 file src/ls.c. This is the > last GPL-2 commit before coreutils turns to GPL-3. >
I don't know if this is something to consider but for my mac, I have another variable CLICOLOR which shows the colors if it is set. This is also true with FreeBSD[1] as well. I don't know if that should be checked if you're on those systems.
I think it would be nice to have --color flag as well if you want to enable color output for just that one output.
[1]: https://unix.stackexchange.com/questions/2897/clicolor-and-ls-colors-in- bash