diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-10-07 12:32:00 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-10-07 12:32:00 +0300 |
commit | 1b0ac8a623463fe135050886f5ff19f978e06a5b (patch) | |
tree | 107694dbb4ea805e30e9b21f056ccd05dc4e047f /internal | |
parent | f5a548441269a6f0baf2ecb75e163d60d4ca236a (diff) |
bug fix: respect POWERLEVEL9K_DISABLE_GITSTATUS; see #246
Diffstat (limited to 'internal')
-rwxr-xr-x | internal/p10k.zsh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 2dd51fa9..629735c0 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4530,7 +4530,10 @@ _p9k_init_vcs() { (( $+GITSTATUS_DAEMON_PID_POWERLEVEL9K )) && gitstatus_start POWERLEVEL9K || _p9k_gitstatus_disabled=1 return fi - (( _POWERLEVEL9K_DISABLE_GITSTATUS )) && return + if (( _POWERLEVEL9K_DISABLE_GITSTATUS )); then + _p9k_gitstatus_disabled=1 + return + fi (( $_POWERLEVEL9K_VCS_BACKENDS[(I)git] )) || return local gitstatus_dir=${_POWERLEVEL9K_GITSTATUS_DIR:-${__p9k_root_dir}/gitstatus} |