1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-09-21 11:00:08 +00:00

bug fix: respect POWERLEVEL9K_DISABLE_GITSTATUS; see #246

This commit is contained in:
romkatv 2019-10-07 11:32:00 +02:00
parent f5a5484412
commit 1b0ac8a623

View file

@ -4530,7 +4530,10 @@ _p9k_init_vcs() {
(( $+GITSTATUS_DAEMON_PID_POWERLEVEL9K )) && gitstatus_start POWERLEVEL9K || _p9k_gitstatus_disabled=1 (( $+GITSTATUS_DAEMON_PID_POWERLEVEL9K )) && gitstatus_start POWERLEVEL9K || _p9k_gitstatus_disabled=1
return return
fi fi
(( _POWERLEVEL9K_DISABLE_GITSTATUS )) && return if (( _POWERLEVEL9K_DISABLE_GITSTATUS )); then
_p9k_gitstatus_disabled=1
return
fi
(( $_POWERLEVEL9K_VCS_BACKENDS[(I)git] )) || return (( $_POWERLEVEL9K_VCS_BACKENDS[(I)git] )) || return
local gitstatus_dir=${_POWERLEVEL9K_GITSTATUS_DIR:-${__p9k_root_dir}/gitstatus} local gitstatus_dir=${_POWERLEVEL9K_GITSTATUS_DIR:-${__p9k_root_dir}/gitstatus}