Hello,edit ~/.dircolors to your liking
Check that you have something like this in your ~/.bashrcUsing color to distinguish file types is disabled both by default and with --color=never. With --color=auto, ls emits color codes only when standard output is connected to a terminal. The
LS_COLORS environment variable can change the settings. Use the dircolors(1) command to set it.
Code:
# enable color support of lsif [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"fi
SYNOPSIS dircolors [OPTION]... [FILE][...] -p, --print-database output defaults[...] If FILE is specified, read it to determine which colors to use for which file types and extensions. Otherwise, a precompiled database is used. For details on the format of these files, run 'dircolors --print-database'.
Code:
$> dircolors --print-database > ~/.dircolors
Code:
$> dircolors --print-ls-colors | grep "\.bak"*.bak00;90$> dircolors --print-ls-colors ~/.dircolors | grep "\.bak"*.bak00;91
Statistics: Posted by fabien — 2024-11-20 18:13