summary refs log tree commit diff stats
path: root/zsh/functions/pure/prompt_pure_setup
diff options
context:
space:
mode:
authorAlan Pearce2013-10-20 09:45:14 +0100
committerAlan Pearce2013-10-20 09:45:14 +0100
commitec791b21441395aab300552142378ff87aa2579d (patch)
tree7e2e8e3b8fe7cb5136223e2681db5144058c860c /zsh/functions/pure/prompt_pure_setup
parent7155b75d6f9e33c5a5c83aacfc25421139b0c5ec (diff)
downloaddotfiles-ec791b21441395aab300552142378ff87aa2579d.tar.lz
dotfiles-ec791b21441395aab300552142378ff87aa2579d.tar.zst
dotfiles-ec791b21441395aab300552142378ff87aa2579d.zip
zsh: Fix pure pull indicator showing when ahead of upstream
Diffstat (limited to 'zsh/functions/pure/prompt_pure_setup')
-rw-r--r--zsh/functions/pure/prompt_pure_setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/functions/pure/prompt_pure_setup b/zsh/functions/pure/prompt_pure_setup
index a263e67..dae1fbb 100644
--- a/zsh/functions/pure/prompt_pure_setup
+++ b/zsh/functions/pure/prompt_pure_setup
@@ -66,7 +66,7 @@ prompt_pure_precmd() {
 		command git fetch &>/dev/null &&
 		# check if there is an upstream configured for this branch
 		command git rev-parse --abbrev-ref @'{u}' &>/dev/null &&
-		(( $(command git rev-list --count HEAD...@'{u}' 2>/dev/null) > 0 )) &&
+		(( $(command git rev-list --right-only --count HEAD...@'{u}' 2>/dev/null) > 0 )) &&
 		# some crazy ansi magic to inject the symbol into the previous line
 		print -Pn "\e7\e[A\e[1G\e[`prompt_pure_string_length $prompt_pure_preprompt`C%F{cyan}⇣%f\e8"
 	} &!