diff options
author | julien@macbook <julien.stechele@gmail.com> | 2011-12-21 15:03:55 +0100 |
---|---|---|
committer | julien@macbook <julien.stechele@gmail.com> | 2011-12-21 15:03:55 +0100 |
commit | dd14e075b7dd39906e2075ac6dd8f5bcc66b6129 (patch) | |
tree | 3dd3516a551dd4f57b228f07ee0bbcb0c2fdc2f8 /lib/git.zsh | |
parent | 54f17588b363fa20df592366b6dd693ce3b7c820 (diff) | |
download | zsh-dd14e075b7dd39906e2075ac6dd8f5bcc66b6129.tar.gz zsh-dd14e075b7dd39906e2075ac6dd8f5bcc66b6129.tar.bz2 zsh-dd14e075b7dd39906e2075ac6dd8f5bcc66b6129.zip |
Ignore submodules dirty in prompt info
Diffstat (limited to 'lib/git.zsh')
-rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index f04343650..defa062c6 100644 --- a/lib/git.zsh +++ b/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" |