coreutils
[Top][All Lists]
Advanced

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

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


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

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

cheers,
Pádraig

Attachment: dircolors--print-ls-colors.patch
Description: Text Data


reply via email to

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