summaryrefslogtreecommitdiff
path: root/lib/git.zsh
diff options
context:
space:
mode:
authorDallas Reedy <code@dallasreedy.com>2010-05-07 10:21:27 -0700
committerDallas Reedy <code@dallasreedy.com>2010-05-07 10:21:27 -0700
commit74429549856521ea71fb4a3c9e6be0741f7c86f8 (patch)
tree85b9905066cb652ee607e84a926dfbb859b2f843 /lib/git.zsh
parentf9abe041e2b70217b0d2f5519a51a57854b49857 (diff)
parent7d036913c4476916fe8b0325ea9cd54266787021 (diff)
downloadzsh-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.zsh2
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"