Remove 0 from git prompt when no modified files
This commit is contained in:
parent
706f866ab2
commit
3ed66ecb4e
1 changed files with 2 additions and 2 deletions
4
bashrc
4
bashrc
|
@ -58,13 +58,13 @@ git__prompt () {
|
|||
|
||||
if [ $modif = 0 ]
|
||||
then
|
||||
echo -ne "$gray:\033[01;36m$modif" # No modified files
|
||||
echo -ne # "$gray:\033[01;36m$modif" # No modified files
|
||||
else
|
||||
echo -ne "$gray:\033[01;33m$modif" # Modified files
|
||||
fi
|
||||
if [ $added -ne 0 ]
|
||||
then
|
||||
echo -ne "${green}S"
|
||||
echo -ne "${green}+$added"
|
||||
fi
|
||||
if [ $untracked -ne 0 ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue