From: Mike Frysinger Date: Mon, 5 Sep 2016 19:34:09 +0000 (-0400) Subject: bashrc: allow empty LS_COLORS X-Git-Url: https://git.wh0rd.org/?p=home.git;a=commitdiff_plain;h=ecf3d4af7078c49902dd2c7814e20a9c3a8089de bashrc: allow empty LS_COLORS --- diff --git a/.bashrc b/.bashrc index bfb9f45..7ae9b50 100644 --- 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