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:
parent
6c9d0977a6
commit
cfc35853df
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue