ogham / exa

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

Exa does not read EXA_COLORS #1161

Open ryanlmw99 opened 1 year ago

ryanlmw99 commented 1 year ago

If exa does something unexpected, or its output looks wrong, or it displays an error on the screen, or if it outright crashes, then please include the following information in your report:

I have some strange issues with exa, initially running this command “EXA_COLORS="reset" && exa” would work as expected but after the system is rebooted the command has no effect .e.g exa would render colors as usual. Furthermore setting custom colors with EXA_COLORS also won’t work.


eggbean commented 1 year ago

How are you trying to set EXA_COLORS? You would normally do that in ~/.bashrc (if using bash).

e.g.

export EXA_COLORS='xa=38;5;135:lc=38;5;124:lm=38;5;196:uu=38;5;178:gu=38;5;178:un=38;5;141:gn=38;5;141:bO=38;5;009'

To remove $EXA_COLORS in the current shell, use EXA_COLORS= not EXA_COLORS=reset

ryanlmw99 commented 1 year ago

Thanks for your response. I just switched back to this setting in .bashrc, exa now works as usual.

export EXA_COLORS="da=38;5;245:di=38;5;14:sn=38;5;28:sb=38;5;28:uu=38;5;40:un=38;5;160:gu=38;5;40:gn=38:5:160:bl=38;5;220:ur=37:uw=\ 37:ux=37:ue=37:gr=37:gw=37:gx=37:tr=37:tw=37:tx=37:su=37:sf=37:xa=37"

alias ls="exa --group --sort=.name --group-directories-first" alias ll="exa --long --header --links --blocks --modified --created --group --all --sort=.name --group-directories-first" alias tree="exa --tree"

Previously this setting did not affect exa .e.g exa seems not read EXA_COLORS so I had to use EXA_COLORS=“..” && exa ..

I’ll report again if the issue comes up. Thanks.