macOS ◆ xterm-256color ◆ zsh 1831 views

sindresorhus/pure needs to be patched in the following way in order to clearly reproduce the problem (rather than depending on sheer luck of timing):

diff --git a/pure.zsh b/pure.zsh
index af4cd24..1515ef9 100644
--- a/pure.zsh
+++ b/pure.zsh
@@ -51,6 +51,10 @@ prompt_pure_check_git_arrows() {
    # check if there is an upstream configured for this branch
    command git rev-parse --abbrev-ref @'{u}' &>/dev/null || return

+   echo "finished parsing upstream branch" >>/tmp/pure.log
+        sleep 5
+        echo "began parsing left/right" >>/tmp/pure.log
+
    local arrows=""
    (( $(command git rev-list --right-only --count HEAD...@'{u}' 2>/dev/null) > 0 )) && arrows="${PURE_GIT_DOWN_ARROW:-⇣}"
    (( $(command git rev-list --left-only --count HEAD...@'{u}' 2>/dev/null) > 0 )) && arrows+="${PURE_GIT_UP_ARROW:-⇡}"