module "color": fix DIR_COLORS location
This commit is contained in:
parent
d22d166e2c
commit
5b9ed4f4f6
|
@ -37,8 +37,8 @@ if [[ "`tput colors`" == "256" ]] || [[ "`tput colors`" == "88" ]] ; then
|
||||||
fi
|
fi
|
||||||
usercolor="%{${FX[bold]}${FG[$usercolor_base]}%}"
|
usercolor="%{${FX[bold]}${FG[$usercolor_base]}%}"
|
||||||
# 8-color-term
|
# 8-color-term
|
||||||
if [ -e /etc/DIR_COLORS_256 ] ; then
|
if [ -e /etc/DIR_COLORS.256 ] ; then
|
||||||
eval "$(dircolors /etc/DIR_COLORS_256)"
|
eval "$(dircolors /etc/DIR_COLORS.256)"
|
||||||
elif [ -e /etc/DIR_COLORS ]; then
|
elif [ -e /etc/DIR_COLORS ]; then
|
||||||
eval "$(dircolors /etc/DIR_COLORS)"
|
eval "$(dircolors /etc/DIR_COLORS)"
|
||||||
fi
|
fi
|
||||||
|
@ -47,10 +47,10 @@ else
|
||||||
|
|
||||||
gitdirty="%{${fg[yellow]}%}"
|
gitdirty="%{${fg[yellow]}%}"
|
||||||
gitstaged="%{${fg[green]}%}"
|
gitstaged="%{${fg[green]}%}"
|
||||||
gitclean="%{$rightcolor%}"
|
gitclean="%{${fg[white]}%}"
|
||||||
vcs_revision="%{${fg[250]}%}"
|
vcs_revision="%{${fg_bold[black]}%}"
|
||||||
|
|
||||||
exitcolor="%{$gitdirty%}"
|
exitcolor="$gitdirty"
|
||||||
rpscolor="%{$fg_bold[black]}%}"
|
rpscolor="%{$fg_bold[black]}%}"
|
||||||
|
|
||||||
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
|
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
|
||||||
|
|
Loading…
Reference in a new issue