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