don't fetch gitstatusd if there is no git

pull/929/head
Roman Perepelitsa 4 years ago
parent a28d45005e
commit 4635fcacee

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

Loading…
Cancel
Save