Skip to content

Commit

Permalink
prompt: fix usage of zsh-async in sorin prompt (#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
ackerleytng authored Mar 29, 2020
1 parent d5bef14 commit 5b03d7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/prompt/functions/prompt_sorin_setup
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ function prompt_sorin_async_callback {
zle && zle reset-prompt
fi
;;
"[async]")
# Code is 1 for corrupted worker output and 2 for dead worker.
if [[ $2 -eq 2 ]]; then
# Our worker died unexpectedly.
typeset -g prompt_prezto_async_init=0
fi
;;
esac
}

Expand Down

0 comments on commit 5b03d7f

Please sign in to comment.