Problem: I am trying to modify LS_COLORS to gray out all files ending with the tilde character.
Question: Can anybody spot my mistake?
Here is what I did:
# write dircolors file:
dircolors -p > ~/.dircolors
# add a line
echo >> ~/.dircolors
echo ".*~ 01;34" >> ~/.dircolors
# apply changes to LS_COLOR
eval "$(dircolors -b ~/.dircolors)"
Now, when I do
echo $LS_COLORS
I get a long line with the following begin and end:
rs=0:di=01;34:ln=01;36: ... *.xspf=00;36:*.*~=01;34:
So I would assume, that files ending with tilde (~) appear in the same color as directories (specified by di), but it doesn't work.