Browse Source

Ignore submodules dirty in prompt info

julien@macbook 12 years ago
parent
commit
dd14e075b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/git.zsh

+ 1 - 1
lib/git.zsh

@@ -6,7 +6,7 @@ function git_prompt_info() {
 
 # Checks if working tree is dirty
 parse_git_dirty() {
-  if [[ -n $(git status -s 2> /dev/null) ]]; then
+  if [[ -n $(git status -s --ignore-submodules=dirty 2> /dev/null) ]]; then
     echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
   else
     echo "$ZSH_THEME_GIT_PROMPT_CLEAN"