From db2302a59cc6e37f1b94871c94df6a4908141f19 Mon Sep 17 00:00:00 2001 From: Matt Cable Date: Tue, 2 Feb 2010 10:39:11 -0700 Subject: [PATCH] git_prompt_info didn't account for empty gitstat case. Problem was only noticable with non-empty $ZSH_THEME_GIT_PROMPT_CLEAN --- lib/git.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git.zsh b/lib/git.zsh index a34140d89..31fa77c10 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -15,7 +15,7 @@ parse_git_dirty () { echo -n "$ZSH_THEME_GIT_PROMPT_UNTRACKED" fi - if [[ $(echo ${gitstat} | wc -l | tr -d ' ') == 0 ]]; then + if [[ $(echo ${gitstat} | grep -v '^$' | wc -l | tr -d ' ') == 0 ]]; then echo -n "$ZSH_THEME_GIT_PROMPT_CLEAN" fi }