root vcs prompt mark for every vcs available

This commit is contained in:
nojhan 2012-07-25 14:08:17 +02:00
parent 275f6abc69
commit 33cc6bf349

View File

@ -589,10 +589,10 @@ __smart_mark()
echo -ne "${WHITE}\\\$${NO_COL}"
fi
else
if [ ! -z $(__git_branch) ]; then
echo -ne "${RED}±${NO_COL}"
if [ ! -z $(__git_branch) ] || [ ! -z $(__hg_branch) ] || [ ! -z $(__svn_branch) ]; then
echo -ne "${LIGHT_RED}±${NO_COL}"
else
echo -ne "${RED}#${NO_COL}"
echo -ne "${LIGHT_RED}#${NO_COL}"
fi
fi
}