don't echo without result

This commit is contained in:
quiwamu 2012-10-04 12:47:02 +09:00
commit d2da8cb805

View file

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