From c1b1da583513dc498c645caae28ea699d876a2fe Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Fri, 15 Mar 2013 12:51:57 +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 4c5fce0..ac118d6 100755 --- a/constants.sh +++ b/constants.sh @@ -14,4 +14,5 @@ export PROMPT_COMMAND='history -a' unset DBUS_SESSION_BUS_ADDRESS -eval `dircolors -b ~/.dircolors` +[[ -f $HOME/.dircolors ]] && eval $(dircolors -b $HOME/.dircolors) +[[ -n "$DISPLAY" ]] && [[ -f $HOME/.dircolors_256 ]] && eval $(dircolors -b $HOME/.dircolors_256)