1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-25 13:30:07 +00:00

start downloading gitstatusd while wizard is running

This commit is contained in:
Roman Perepelitsa 2020-07-13 14:24:38 +02:00
parent 6c9d0977a6
commit cfc35853df

View file

@ -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