ogham / exa

A modern replacement for ‘ls’.
https://the.exa.website/
MIT License
23.61k stars 657 forks source link

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

Open mtwomey opened 2 years ago

mtwomey commented 2 years ago

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.

ariasuni commented 2 years ago

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.