From 3ed66ecb4e636528563e2b58b98666828a2b7a7b Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 19 Nov 2018 21:08:46 +0100 Subject: [PATCH] Remove 0 from git prompt when no modified files --- bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 218621b..4f06f1e 100644 --- a/bashrc +++ b/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