]> git.wh0rd.org Git - home.git/commitdiff
bashrc: allow empty LS_COLORS
authorMike Frysinger <vapier@gentoo.org>
Mon, 5 Sep 2016 19:34:09 +0000 (15:34 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 5 Sep 2016 19:37:05 +0000 (15:37 -0400)
.bashrc

diff --git a/.bashrc b/.bashrc
index bfb9f45101c91937fe1b66bb71aae52b5b772b56..7ae9b50a83ee3943c46d1c675d5b57e474fbf6ff 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -25,7 +25,7 @@ unset LDPATH # KDE bs
 shopt -s checkwinsize
 shopt -s no_empty_cmd_completion
 
-[ "${LS_COLORS+set}" = "set" ] || 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