Remove 0 from git prompt when no modified files

This commit is contained in:
Talia 2018-11-19 21:08:46 +01:00
parent 706f866ab2
commit 3ed66ecb4e

4
bashrc
View file

@ -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