git_prompt_info didn't account for empty gitstat case.

Problem was only noticable with non-empty $ZSH_THEME_GIT_PROMPT_CLEAN
This commit is contained in:
Matt Cable 2010-02-02 10:39:11 -07:00
commit db2302a59c

View file

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