Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

General Questions • Re: [Software] xfce-terminal -- some files greyed out

$
0
0
Hello,
Using 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.
Check that you have something like this in your ~/.bashrc

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
edit ~/.dircolors to your liking

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



Viewing all articles
Browse latest Browse all 2849

Trending Articles