From cfc35853dfd4ff8a1bbcbe43f11c6d71c5233148 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Mon, 13 Jul 2020 14:24:38 +0200 Subject: [PATCH] start downloading gitstatusd while wizard is running --- internal/p10k.zsh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 22249727..94c5532c 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -6413,7 +6413,16 @@ _p9k_precmd_impl() { fi if (( ret == 0 )); then ( - builtin source "$__p9k_root_dir"/internal/wizard.zsh + local -i pid + { + { /bin/sh "$__p9k_root_dir"/gitstatus/install /dev/null & } && pid=$! + ( builtin source "$__p9k_root_dir"/internal/wizard.zsh ) + } always { + if (( pid )); then + kill -- $pid 2>/dev/null + wait -- $pid 2>/dev/null + fi + } ) if (( $? )); then instant_prompt_disabled=1