diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-04-21 02:10:21 -0500 |
---|---|---|
committer | Felipe Contreras <felipe.contreras@gmail.com> | 2013-04-21 02:56:39 -0500 |
commit | d615f6437408d66fa8aad031eb45942bf84fed86 (patch) | |
tree | e7374b6027532d6fdc2855a56bb118126060ba84 /lib/git.zsh | |
parent | 85426a57a2561f675a6ad51754d6687c3ec571c2 (diff) | |
download | zsh-d615f6437408d66fa8aad031eb45942bf84fed86.tar.gz zsh-d615f6437408d66fa8aad031eb45942bf84fed86.tar.bz2 zsh-d615f6437408d66fa8aad031eb45942bf84fed86.zip |
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>
Diffstat (limited to 'lib/git.zsh')
-rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index 76fe9b142..353c42f3c 100644 --- a/lib/git.zsh +++ b/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 } |