Enable dircolors. Check for 'dircolors' command.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 14 Feb 2012 23:23:54 +0200
changeset 304 c6ae628708d5
parent 303 d05577057b67
child 305 72032902cdd1
Enable dircolors. Check for 'dircolors' command.
.bashrc
--- a/.bashrc	Tue Feb 14 21:31:12 2012 +0200
+++ b/.bashrc	Tue Feb 14 23:23:54 2012 +0200
@@ -18,9 +18,9 @@
   ;;
 esac
 
-# if [[ -f ~/.dircolors ]]; then
-#   eval `dircolors -b ~/.dircolors`
-# fi
+if command -v dircolors >/dev/null 2>&1 && [[ -f ~/.dircolors ]]; then
+  eval "`dircolors -b ~/.dircolors`"
+fi
 
 # Don't store duplicate adjacent items in the history.
 #   ignorespace     do not save lines that start with space