Browse code

Ignore submodules dirty in prompt info

julien@macbook authored on 21/12/2011 at 14:03:55
Showing 1 changed files
... ...
@@ -6,7 +6,7 @@ function git_prompt_info() {
6 6
 
7 7
 # Checks if working tree is dirty
8 8
 parse_git_dirty() {
9
-  if [[ -n $(git status -s 2> /dev/null) ]]; then
9
+  if [[ -n $(git status -s --ignore-submodules=dirty 2> /dev/null) ]]; then
10 10
     echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
11 11
   else
12 12
     echo "$ZSH_THEME_GIT_PROMPT_CLEAN"