diff options
author | theminor <theminor@users.noreply.github.com> | 2016-01-27 01:20:20 +0300 |
---|---|---|
committer | theminor <theminor@users.noreply.github.com> | 2016-01-27 01:20:20 +0300 |
commit | 3b7dfff7ea5ccb00a9422b2713dffa4fd1d90358 (patch) | |
tree | 94412d418ae22d183db6118442437b9ccf66d3a8 | |
parent | 472fb6f674d315f372bc3480b2f1aba8d772a680 (diff) |
Add VCS_WORKDIR_HALF_DIRTY vrbl for unstaged files
-rw-r--r-- | functions/vcs.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh index 4a0a7ead..b23b8330 100644 --- a/functions/vcs.zsh +++ b/functions/vcs.zsh @@ -10,6 +10,9 @@ function +vi-git-untracked() { if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' && \ -n $(git ls-files --others --exclude-standard | sed q) ]]; then hook_com[unstaged]+=" %F{$POWERLEVEL9K_VCS_FOREGROUND}$(print_icon 'VCS_UNTRACKED_ICON')%f" + VCS_WORKDIR_HALF_DIRTY=true + else + VCS_WORKDIR_HALF_DIRTY=false fi } @@ -90,4 +93,3 @@ function +vi-vcs-detect-changes() { VCS_WORKDIR_DIRTY=false fi } - |