Browse code

Merge pull request #764 from Fl4t/submodules

Ignore submodules dirty in prompt info

Robby Russell authored on 26/12/2011 at 18:05:51
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"