summaryrefslogtreecommitdiff
path: root/lib/git.zsh
diff options
context:
space:
mode:
authorToon Claes <toon@tonotdo.com>2009-11-09 21:28:17 +0100
committerToon Claes <toon@tonotdo.com>2009-11-09 21:28:17 +0100
commit729fd0ab3cae9636ea8d40b76b80a0763c9150da (patch)
treedfc48d9f58e5448f7efda657f7d85cdbf5c15cc9 /lib/git.zsh
parentbbef2db92b39c41705e0a3f05da525b5b1eb8901 (diff)
parentc620408962dd93fe920414eedd8e8e38b241eb08 (diff)
downloadzsh-729fd0ab3cae9636ea8d40b76b80a0763c9150da.tar.gz
zsh-729fd0ab3cae9636ea8d40b76b80a0763c9150da.tar.bz2
zsh-729fd0ab3cae9636ea8d40b76b80a0763c9150da.zip
Merge branch 'master' of git://github.com/robbyrussell/oh-my-zsh
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 84a3af0b9..6ef950f12 100644
--- a/lib/git.zsh
+++ b/lib/git.zsh
@@ -5,7 +5,7 @@ function git_prompt_info() {
}
parse_git_dirty () {
- if [[ $(git status | tail -n1) != "nothing to commit (working directory clean)" ]]; then
+ if [[ $((git status &> /dev/null) | tail -n1) != "nothing to commit (working directory clean)" ]]; then
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
else
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"