Bash/Zsh prompt git status: Just test if  prints anything. There's no need to use the counter of how many commits the local branch is ahead or behind.