]> git.wh0rd.org Git - home.git/commitdiff
run dircolors only when LS_COLORS is not set
authorMike Frysinger <vapier@gentoo.org>
Sun, 22 Mar 2015 05:48:00 +0000 (01:48 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 22 Mar 2015 05:48:00 +0000 (01:48 -0400)
.bashrc

diff --git a/.bashrc b/.bashrc
index 26ac1129f6f5e07784a664f8468ef0d2047866ff..bfb9f45101c91937fe1b66bb71aae52b5b772b56 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -25,7 +25,7 @@ unset LDPATH # KDE bs
 shopt -s checkwinsize
 shopt -s no_empty_cmd_completion
 
-eval `dircolors 2>/dev/null`
+[ "${LS_COLORS+set}" = "set" ] || eval `dircolors 2>/dev/null`
 
 [ -r /usr/local/src/blackfin/bin/bfin-alias ] && . /usr/local/src/blackfin/bin/bfin-alias
 [ -r /usr/local/src/blackfin/git/toolchain/distribution/snapshots/bfin-alias ] && . /usr/local/src/blackfin/git/toolchain/distribution/snapshots/bfin-alias