From d99627e3f367b4e5663375fd5b7cc4c5ae39b8a0 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Fri, 22 Apr 2016 15:50:34 +0100 Subject: Fix dircolors/gdircolors handling --- .bashrc | 5 +++-- 1 file 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 -- cgit 1.4.1-2-gfad0