Improve colouring in git bash prompt

This commit is contained in:
Talia 2019-06-25 09:58:33 +02:00
parent adaa8e4a6e
commit a97921d650
1 changed files with 3 additions and 2 deletions

5
bashrc
View File

@ -49,6 +49,7 @@ git__prompt () {
yellow='\033[01;33m' yellow='\033[01;33m'
red='\033[01;31m' red='\033[01;31m'
green='\033[01;32m' green='\033[01;32m'
purple='\033[01;35m'
# SYNC # SYNC
if [ -z $ahead ] && [ -z $behind ] if [ -z $ahead ] && [ -z $behind ]
@ -61,7 +62,7 @@ git__prompt () {
then then
echo -ne " ${green}${ahead}" echo -ne " ${green}${ahead}"
else else
echo -ne " ${red}${behind}${yellow}${ahead}" echo -ne " ${red}${behind}${red}${ahead}"
fi fi
# BRANCH # BRANCH
@ -106,7 +107,7 @@ git__prompt () {
fi fi
if [ $untracked -ne 0 ] if [ $untracked -ne 0 ]
then then
echo -ne " ${red}+$untracked" echo -ne " ${purple}+$untracked"
fi fi
fi fi
} }