From 2ade5d786b5b2a700964a6cd418cdaaca88fc55b Mon Sep 17 00:00:00 2001 From: romkatv Date: Tue, 26 May 2020 08:36:52 +0200 Subject: [PATCH] disable instant prompt when gitstatus fails to initialize --- internal/p10k.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index ad7576f5..373ee7b3 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -7910,6 +7910,7 @@ _p9k_init_vcs() { } } fi + (( $+GITSTATUS_DAEMON_PID_POWERLEVEL9K )) || _p9k__instant_prompt_disabled=1 return 0 fi (( _POWERLEVEL9K_DISABLE_GITSTATUS )) && return @@ -7952,6 +7953,7 @@ _p9k_init_vcs() { trap ':' INT } } + (( $+GITSTATUS_DAEMON_PID_POWERLEVEL9K )) || _p9k__instant_prompt_disabled=1 } _p9k_init() {