disable instant prompt when gitstatus fails to initialize

This commit is contained in:
romkatv 2020-05-26 08:36:52 +02:00
parent ed3287b737
commit 2ade5d786b
1 changed files with 2 additions and 0 deletions

View File

@ -7910,6 +7910,7 @@ _p9k_init_vcs() {
} }
} }
fi fi
(( $+GITSTATUS_DAEMON_PID_POWERLEVEL9K )) || _p9k__instant_prompt_disabled=1
return 0 return 0
fi fi
(( _POWERLEVEL9K_DISABLE_GITSTATUS )) && return (( _POWERLEVEL9K_DISABLE_GITSTATUS )) && return
@ -7952,6 +7953,7 @@ _p9k_init_vcs() {
trap ':' INT trap ':' INT
} }
} }
(( $+GITSTATUS_DAEMON_PID_POWERLEVEL9K )) || _p9k__instant_prompt_disabled=1
} }
_p9k_init() { _p9k_init() {