Fix dircolors/gdircolors handling

This commit is contained in:
David Morgan 2016-04-22 15:50:34 +01:00
parent 443f8e3566
commit d99627e3f3
1 changed files with 3 additions and 2 deletions

View File

@ -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