diff options
author | Sebastien Varrette <Sebastien.Varrette@uni.lu> | 2016-02-09 16:09:33 +0300 |
---|---|---|
committer | Sebastien Varrette <Sebastien.Varrette@uni.lu> | 2016-02-09 16:09:33 +0300 |
commit | 0fd9d277f93bf45acf6ab0dc280666458c58bd74 (patch) | |
tree | d917a282584c4ed0df35fe8e9f5da45ade068625 /functions/vcs.zsh | |
parent | 56bc1b3f47e4dbe72ef13a3227dd90682c6dbea8 (diff) |
correct half-dirty detection -- restrict to untracked files
Signed-off-by: Sebastien Varrette <Sebastien.Varrette@uni.lu>
Diffstat (limited to 'functions/vcs.zsh')
-rw-r--r-- | functions/vcs.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh index cf980d23..c2c94022 100644 --- a/functions/vcs.zsh +++ b/functions/vcs.zsh @@ -12,7 +12,7 @@ function +vi-git-untracked() { # TODO: check git >= 1.7.2 FLAGS+='--ignore-submodules=dirty' if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' && \ - -n $(git status ${FLAGS} 2> /dev/null | tail -n1) ]]; then + -n $(git status ${FLAGS} | grep '^??' 2> /dev/null | tail -n1) ]]; then hook_com[unstaged]+=" %F{$POWERLEVEL9K_VCS_FOREGROUND}$(print_icon 'VCS_UNTRACKED_ICON')%f" VCS_WORKDIR_HALF_DIRTY=true else |