diff options
author | Andy Fowler <andy@andyfowler.com> | 2010-05-04 16:18:57 -0400 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2010-05-06 20:37:00 -0700 |
commit | 3c87d483628267e48fc0f462f46488dcd4f87810 (patch) | |
tree | 83d9e924745f4f486487dc75dfc56945e04c77ad /lib | |
parent | be66fe9d7aab5cd1603a6e86d67b792ac9f5e6f5 (diff) | |
download | zsh-3c87d483628267e48fc0f462f46488dcd4f87810.tar.gz zsh-3c87d483628267e48fc0f462f46488dcd4f87810.tar.bz2 zsh-3c87d483628267e48fc0f462f46488dcd4f87810.zip |
makes git status prompt 4x faster
(via git status -s, benchmarked)
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 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" |