Skip to content

Commit

Permalink
prompt: fix usage of zsh-async in sorin prompt (sorin-ionescu#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
ackerleytng authored and Erik Johansen committed Feb 1, 2021
1 parent 6b9caaf commit 347c4ba
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 347c4ba

Please sign in to comment.