diff options
author | Toon Claes <toon@tonotdo.com> | 2009-11-09 21:28:17 +0100 |
---|---|---|
committer | Toon Claes <toon@tonotdo.com> | 2009-11-09 21:28:17 +0100 |
commit | 729fd0ab3cae9636ea8d40b76b80a0763c9150da (patch) | |
tree | dfc48d9f58e5448f7efda657f7d85cdbf5c15cc9 /lib/git.zsh | |
parent | bbef2db92b39c41705e0a3f05da525b5b1eb8901 (diff) | |
parent | c620408962dd93fe920414eedd8e8e38b241eb08 (diff) | |
download | zsh-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.zsh | 2 |
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" |