diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2016-02-05 22:00:08 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2016-02-05 22:00:08 +0300 |
commit | 9e191d43058d66fd52d1c33a244523600848bd25 (patch) | |
tree | 1064665a3bb627944f1951875f1a09b6fe511a2c /functions/vcs.zsh | |
parent | 4897c795faf557c16d0d337f5e493ba1e4071aa0 (diff) | |
parent | 4bbff138fbad9724cc04d164af30d08aea716e1d (diff) |
Pull PR #204 into `next`. Introduces new VCS state, `untracked`
Diffstat (limited to 'functions/vcs.zsh')
-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 } - |