Open twolodzko opened 1 year ago
I think this is a good combination of #139 and some of #245
To be able to offer some custom themes in a config file would be awesome :D
eza uses a lot of colors for different items in the output. I personally find it distracting
I fully agree, it's the first things I changed when switching to exa
some long time ago.
Here is the theme I use:
# Config eza/exa colors to shades of grey instead of a distractful bright colors
EXA_COLORS=""
EXA_COLORS+="da=38;5;243:" # darker
EXA_COLORS+="uu=38;5;239:gu=38;5;239:" # darker username & group
EXA_COLORS+="sn=38;5;29:sb=38;5;100:" # darker and better contrast for file size
# Darker permissions (shades of grey)
EXA_COLORS+="ur=38;5;240:uw=38;5;244:ux=38;5;248:ue=38;5;248:" # user permissions
EXA_COLORS+="gr=38;5;240:gw=38;5;244:gx=38;5;248:" # group permissions
EXA_COLORS+="tr=38;5;240:tw=38;5;244:tx=38;5;248:" # other permissions
EXA_COLORS+="xa=38;5;24:" # xattr marker ('@')
EXA_COLORS+="xx=38;5;240:" # punctuation ('-')
export EXA_COLORS
Which looks like this:
I didn't do any changes for the filenames colors, I might in the future ¯_(ツ)_/¯
I edited my theme to have distinct colors for file size of different magnitudes, by replacing sn
/sb
config line with:
# Color file sizes by order of magnitude
EXA_COLORS+="nb=38;5;239:" # 0 -> <1KB : grey
EXA_COLORS+="nk=38;5;29:uk=38;5;100:" # 1KB -> <1MB : green
EXA_COLORS+="nm=38;5;26:um=38;5;32:" # 1MB -> <1GB : blue
EXA_COLORS+="ng=38;5;130:ug=38;5;166;1:" # 1GB -> <1TB : orange
EXA_COLORS+="nt=38;5;160:ut=38;5;197;1:" # 1TB -> +++ : red
I think it looks pretty nice :smiley: :sparkles:
_test files were created with truncate -s 123g 3_giga
for example to simulate file sizes_
I'd love to have something like --color ls which just uses the same colors as ls does, not more.
Did you try something like EZA_COLORS="reset:$LS_COLORS"
?
In some color configurations,
eza
uses a lot of colors for different items in the output. I personally find it distracting (mostly the file permissions in-l
mode). I could use--color never
, but I wouldn't mind ifeza
colored only the file and directory names asls
. I could also useEXA_COLORS
to individually turn off each of the components, but this is not well documented and needs individually blacklisting each of them. I'd love to have something like--color ls
which just uses the same colors asls
does, not more.