summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-13 15:24:38 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-13 15:24:38 +0300
commitcfc35853dfd4ff8a1bbcbe43f11c6d71c5233148 (patch)
tree1131ad41c91736533342cc4b21761b0959af997f
parent6c9d0977a6378239f4153f5d3700bc5f70b36c3d (diff)
start downloading gitstatusd while wizard is running
-rw-r--r--internal/p10k.zsh11
1 files changed, 10 insertions, 1 deletions
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 &>/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