05-05-2015, 08:25 PM
I like that. No need for the eval here though.
Code:
if [ -f $HOME/.dir_colors ]; then
/usr/bin/dircolors -b $HOME/.dir_colors
elif [ -f /etc/DIR_COLORS ]; then
/usr/bin/dircolors -b /etc/DIR_COLORS
else
/usr/bin/dircolors -b
fi