Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

git: fix parse_git_dirty()

If oh-my-zsh.hide-status is configured, the 'clean' code won't be
generated, and some themes might end up distorted. Let's generate the
'clean' code even when we don't want the show the dirty status.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information...
commit d615f6437408d66fa8aad031eb45942bf84fed86 1 parent 85426a5
@felipec felipec authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/git.zsh
View
2  lib/git.zsh
@@ -21,6 +21,8 @@ parse_git_dirty() {
else
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
fi
+ else
+ echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.