Improve colouring in git bash prompt
This commit is contained in:
parent
adaa8e4a6e
commit
a97921d650
1 changed files with 3 additions and 2 deletions
5
bashrc
5
bashrc
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue