1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

don't fetch gitstatusd if there is no git

This commit is contained in:
Roman Perepelitsa 2020-07-14 06:46:05 +02:00
parent a28d45005e
commit 4635fcacee

View file

@ -6412,6 +6412,7 @@ _p9k_precmd_impl() {
ret=$?
fi
if (( ret == 0 )); then
if (( $+commands[git] )); then
(
local -i pid
{
@ -6424,6 +6425,9 @@ _p9k_precmd_impl() {
fi
}
)
else
( builtin source "$__p9k_root_dir"/internal/wizard.zsh )
fi
if (( $? )); then
instant_prompt_disabled=1
else