coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch: dircolors, add --print-ls-colors option


From: Pádraig Brady
Subject: Re: Patch: dircolors, add --print-ls-colors option
Date: Mon, 14 Feb 2022 13:25:11 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Thunderbird/97.0

On 13/02/2022 18:30, Pádraig Brady wrote:
On 13/10/2021 14:18, Pádraig Brady wrote:
BTW dircolors(1) should probably also have a mode to print LS_COLORS like:

     $ eval $(TERM=xterm dircolors)
     $ echo $LS_COLORS | tr : '\n' | sed 
's/\(.*\)=\(.*\)/\x1b[\2m\1\t\2\x1b[0m/'

The attached implement the above through: dircolors --print-ls-colors

Pushed. For example output see:

https://www.pixelbeat.org/patches/coreutils/dircolors.html

cheers,
Pádraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]