man dircolors
It's a program that sets up colors for ls
. For example you could have markdown
files and go source files show different colors, it can use the 256 color space.
It's a pretty powerful tool.
defaults
Some systems, notably void linux, have defaults defined for dircolors which
can override your terminal colors. These defaults are found and set with the
script in /etc/profile.d/colorls.sh
. Basically it looks for /etc/DIRCOLORS
,
/etc/colors/DIR_COLORS.*
, ~/.dircolors
, ~/.dir_colors
and a few other
similar files. The local ones override the global ones.
disable / override
You can disable / override the system defaults by simply creating
touch ~/.dircolors
and logging back in. You could obviously put an actual
config in there to use.