about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <david.morgan@gmail.com>2016-04-22 15:50:34 +0100
committerDavid Morgan <david.morgan@gmail.com>2016-04-22 15:50:34 +0100
commitd99627e3f367b4e5663375fd5b7cc4c5ae39b8a0 (patch)
tree6425311daf1cf21ad0893f4583271909284e7f52
parent443f8e3566581eac4bc3187c64405121c3a37401 (diff)
downloaddotfiles-d99627e3f367b4e5663375fd5b7cc4c5ae39b8a0.tar.gz
Fix dircolors/gdircolors handling
-rw-r--r--.bashrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index 7bb1557..a6b5980 100644
--- a/.bashrc
+++ b/.bashrc
@@ -88,13 +88,14 @@ do_boring_prompt() {
     export PS1='\n\d \t {\h}\n[\u@\h \w](\#)\$ '
 }
 
-if ! [ -x "$(command -v gdircolors)" ]; then
+if [ -x "$(command -v gdircolors)" ]; then
     dircolors=`type -p gdircolors`
 else
     dircolors=`type -p dircolors`
 fi
 
-if [ -z ${dircolors+x} ]; then
+#if [ -n "${dircolors+x}" ]; then
+if [ -n "${dircolors}" ]; then
     if [[ -f ~/.dir_colors ]]; then
         eval `$dircolors -b ~/.dir_colors`
     else