[ Reposting since I didn't reply-all the first time; apologies ]
Your change could break this setup if there were
entries in "specific config" that weren't overridden later,
and even if they were, it would result in larger LS_COLORS env vars.
Ah, I see. I lacked a full understanding of this format so I overlooked
that, sorry.
How about the attached patch to allow matching COLORTERM
just like TERM, and set the pattern in the default config
to match against any COLORTERM value.
This also has the advantage of handling specific COLORTERM values.
This looks fine, and works on my machine.
We would have to add the default COLORTERM entry to distro config
(when supported by the installed dircolors), but that should be easy enough to
do.
Don't distros just generally use the compiled-in default?