diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-07-13 15:24:38 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-07-13 15:24:38 +0300 |
commit | cfc35853dfd4ff8a1bbcbe43f11c6d71c5233148 (patch) | |
tree | 1131ad41c91736533342cc4b21761b0959af997f | |
parent | 6c9d0977a6378239f4153f5d3700bc5f70b36c3d (diff) |
start downloading gitstatusd while wizard is running
-rw-r--r-- | internal/p10k.zsh | 11 |
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 |