diff options
author | Dallas Reedy <code@dallasreedy.com> | 2010-05-07 10:21:27 -0700 |
---|---|---|
committer | Dallas Reedy <code@dallasreedy.com> | 2010-05-07 10:21:27 -0700 |
commit | 74429549856521ea71fb4a3c9e6be0741f7c86f8 (patch) | |
tree | 85b9905066cb652ee607e84a926dfbb859b2f843 /lib/git.zsh | |
parent | f9abe041e2b70217b0d2f5519a51a57854b49857 (diff) | |
parent | 7d036913c4476916fe8b0325ea9cd54266787021 (diff) | |
download | zsh-74429549856521ea71fb4a3c9e6be0741f7c86f8.tar.gz zsh-74429549856521ea71fb4a3c9e6be0741f7c86f8.tar.bz2 zsh-74429549856521ea71fb4a3c9e6be0741f7c86f8.zip |
Merge remote branch 'robbyrussell/master'
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 629a08b0e..1d1d24deb 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -5,7 +5,7 @@ function git_prompt_info() { } parse_git_dirty () { - if [[ $((git status 2> /dev/null) | tail -n1) != "nothing to commit (working directory clean)" ]]; then + if [[ -n $(git status -s 2> /dev/null) ]]; then echo "$ZSH_THEME_GIT_PROMPT_DIRTY" else echo "$ZSH_THEME_GIT_PROMPT_CLEAN" |