From d2da8cb80504f8c26a81d2b1a30bad880ace90fb Mon Sep 17 00:00:00 2001 From: quiwamu Date: Thu, 4 Oct 2012 12:47:02 +0900 Subject: [PATCH] don't echo without result --- lib/git.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/git.zsh b/lib/git.zsh index a364e7524..d12103449 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -66,7 +66,9 @@ git_prompt_status() { if echo "$INDEX" | grep '^UU ' &> /dev/null; then STATUS="$ZSH_THEME_GIT_PROMPT_UNMERGED$STATUS" fi - echo $STATUS + if [ "$STATUS" != "" ];then + echo $STATUS + fi } #compare the provided version of git to the version installed and on path