Table of Contents

.dircolors

Controls the colours used by ls (and eza) when listing files. Loaded in ~/.bashrc or ~/.profile via:

[ -f ~/.dircolors ] && eval "$(dircolors ~/.dircolors)"

Format

Generate a default template to edit:

dircolors --print-database > ~/.dircolors

Key entries:

DIR 01;34          # directories — bold blue
LINK 01;36         # symlinks — bold cyan
EXEC 01;32         # executables — bold green
*.tar 01;31        # archives — bold red
*.jpg 00;35        # images — purple

Colour codes: 00=normal, 01=bold, 30-37=colours (black/red/green/yellow/blue/magenta/cyan/white), 90-97=bright variants.

Gruvbox Scheme

To match the Gruvbox Dark colour scheme used elsewhere, set earthy amber/orange for directories, muted tones for standard files.

See Also