Lsd: Honor $LSCOLORS environment variable

Created on 6 Dec 2018  路  5Comments  路  Source: Peltoche/lsd

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.

kinenhancement

Most helpful comment

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?

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cengizIO picture cengizIO  路  3Comments

rediffusion picture rediffusion  路  5Comments

ngirard picture ngirard  路  6Comments

jfernandz picture jfernandz  路  6Comments

sklages picture sklages  路  5Comments