Improve colors for branch display in bash git prompt
This commit is contained in:
parent
e5e62e6044
commit
87a6485177
1 changed files with 5 additions and 2 deletions
7
bashrc
7
bashrc
|
@ -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 ]
|
||||
|
|
Loading…
Reference in a new issue