reorder, prefer dir_colors in the home directory over global dir colors

This commit is contained in:
David Majnemer 2009-01-07 00:54:32 -05:00
parent b3c9a9c6e9
commit cf7d1321d5

View file

@ -2,8 +2,8 @@
# colors
for dircolors in gdircolors dircolors ; do
if (command -v $dircolors > /dev/null 2>&1) ; then
[ -f /etc/DIR_COLORS ] && eval `$dircolors -b /etc/DIR_COLORS` && break
[ -f "${HOME}/.dir_colors" ] && eval `$dircolors -b "${HOME}/.dir_colors"` && break
[ -f /etc/DIR_COLORS ] && eval `$dircolors -b /etc/DIR_COLORS` && break
eval `$dircolors -b` && break
fi
done