exa icon indicating copy to clipboard operation
exa copied to clipboard

Glob with "or" syntax isn't parsed for LS_COLORS

Open mtwomey opened this issue 3 years ago • 1 comments

exa doesn't appear to parse an "or" in a glob for the LS_COLOR env variable. I've tried it both using the syntax of ignoring files:

LS_COLORS="*.zip|*.rar=38;2;180;81;87"

as well as the more traditional glob format:

LS_COLORS="{*.rar,*.zip}=38;2;180;81;87"

In both cases it results in the glob not matching anything.

mtwomey avatar Feb 24 '22 04:02 mtwomey

Does ls really support that? Is this something specific to GNU ls or some other ls? I’m not sure we want to handle specific or advanced use cases for LS_COLORS, since there are ways to generate compatible LS_COLORS and that we’ll probably add a configuration file at some point to make this type of configuration easier.

ariasuni avatar Feb 26 '22 19:02 ariasuni