Fix dircolors/gdircolors handling
This commit is contained in:
parent
443f8e3566
commit
d99627e3f3
5
.bashrc
5
.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
|
||||
|
|
Loading…
Reference in New Issue