浏览代码

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>
Felipe Contreras 12 年之前
父节点
当前提交
d615f64374
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/git.zsh

+ 2 - 0
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  
 }