Improve colors for branch display in bash git prompt

This commit is contained in:
Talia 2018-11-19 21:33:37 +01:00
parent e5e62e6044
commit 87a6485177

7
bashrc
View file

@ -55,9 +55,12 @@ git__prompt () {
fi
if [ $branch = 'master' ]
then
echo -ne " \033[01;34m$branch"
echo -ne " $blue$branch"
elif [ ${branch:0:1} = '#' ]
then
echo -ne " $red$branch"
else
echo -ne " \033[01;32m$branch"
echo -ne " $yellow$branch"
fi
if [ $modif = 0 ]