From fa87bdcfc9d6f1d2b5887bc6379fba4d0a115014 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Fri, 15 Mar 2013 12:51:30 +0400 Subject: [PATCH] LS_COLORS set by dircolors. --- constants.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/constants.sh b/constants.sh index c69e74d..15e10ca 100755 --- a/constants.sh +++ b/constants.sh @@ -38,4 +38,5 @@ case $TERM in ;; esac -eval `dircolors -b ~/.dircolors` +[[ -f $HOME/.dircolors ]] && eval $(dircolors -b $HOME/.dircolors) +[[ -n "$DISPLAY" ]] && [[ -f $HOME/.dircolors_256 ]] && eval $(dircolors -b $HOME/.dircolors_256)