aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-05-26 09:36:52 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-05-26 09:37:05 +0300
commit2ade5d786b5b2a700964a6cd418cdaaca88fc55b (patch)
treed7ca8918c2c5d914fab6a5560554017e1d809102
parented3287b737bafff6eefdf59a532caac88d2ff915 (diff)
disable instant prompt when gitstatus fails to initialize
-rw-r--r--internal/p10k.zsh2
1 files changed, 2 insertions, 0 deletions
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() {