With the original code below dir_colors would not work for me at all.
1.
Code: Select all
# enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
Edited code now works just Fine.
2.
Code: Select all
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
eval "$(dircolors ~/.dir_colors)"