diff options
-rw-r--r-- | .bashrc | 5 |
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 |