aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-03-03 11:46:07 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-03-03 11:46:35 +0300
commitf20faf175bb99883d88757b81ee02d8e977dce4e (patch)
tree79018c05a0474e20859a3348c7c03ca49803250f
parent88f3d25f9089000bbd0f9ad8f1faf2ba5fa99f97 (diff)
do not set POWERLEVEL9K_VCS_STATUS_COMMAND
-rwxr-xr-xpowerlevel9k.zsh-theme10
1 files changed, 5 insertions, 5 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index e5bdfd2d..8238190a 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1657,14 +1657,14 @@ powerlevel9k_vcs_init() {
fi
}
-# If not empty, should be a command that provides vcs info in the format of gitstatus.
-# See https://github.com/romkatv/gitstatus.
-set_default POWERLEVEL9K_VCS_STATUS_COMMAND ""
-
################################################################
# Segment to show VCS information
prompt_vcs() {
- if [[ -z $POWERLEVEL9K_VCS_STATUS_COMMAND ]]; then
+ # If POWERLEVEL9K_VCS_STATUS_COMMAND isn't empty, it should be a command that provides vcs info
+ # in the format of gitstatus. See https://github.com/romkatv/gitstatus. If you enable gitstatus,
+ # it'll define POWERLEVEL9K_VCS_STATUS_COMMAND for you. To disable, you can explicitly set
+ # POWERLEVEL9K_VCS_STATUS_COMMAND="".
+ if [[ -z $POWERLEVEL9K_VCS_STATUS_COMMAND ]]; then
VCS_WORKDIR_DIRTY=false
VCS_WORKDIR_HALF_DIRTY=false
local current_state=""