diff options
author | meh <meh.ffff@gmail.com> | 2009-11-06 20:55:08 +0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2009-11-09 07:15:06 +0800 |
commit | 8f33231823dbf6c68ccc65fbb028fce6ff1efd74 (patch) | |
tree | 23cd09e6d565858934cefffcfa2de04d479efe51 /lib | |
parent | e24709a2b80c8f829c8ceb66130a4b3a6cb86261 (diff) | |
download | zsh-8f33231823dbf6c68ccc65fbb028fce6ff1efd74.tar.gz zsh-8f33231823dbf6c68ccc65fbb028fce6ff1efd74.tar.bz2 zsh-8f33231823dbf6c68ccc65fbb028fce6ff1efd74.zip |
Fixed issue #25.
Diffstat (limited to 'lib')
-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 9409c92db..7b7b3700f 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -16,7 +16,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" |