Most shells have an LSCOLORS or LS_COLORS environment variable which allows users to modify which colors are used by LS for different types and states of filesystem objects. It would be excellent if lsd supported this.
Hi @hawkw,
This seems an excellent idea! For now I have a focus on some CI/CD stuff but it clearly enter into the todo list.
Do you want to make a contribution and propose a patch?
@Peltoche I don't have a whole lot of spare time right now, but if I have a chance in the near future and nobody else has already done it, I'd be happy to. Just figured it was worth getting it on the to-do list now. :)
I have written some Rust code which parses the LS_COLORS environment variable for fd. There is an open ticket to extract that into a separate library/crate here: https://github.com/sharkdp/fd/issues/363. Maybe this could be of use for lsd, too?
I'll look into forking the repo and seeing if I can merge this feature in.
Hi @Skarlett ,
You should check #84, @meain already work on it. You see with @meain in order to avoid duplicate work.
Most helpful comment
I have written some Rust code which parses the
LS_COLORSenvironment variable forfd. There is an open ticket to extract that into a separate library/crate here: https://github.com/sharkdp/fd/issues/363. Maybe this could be of use forlsd, too?