aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2016-02-26 17:23:02 +0300
committerDominik Ritter <dritter03@googlemail.com>2016-02-26 17:53:14 +0300
commitcb5d33affb4fb223ec29f6dfb89ff8b0bb6e9133 (patch)
tree4e2192881d467fb0c1a9fe64a6800006f9a6539f /functions
parent359109978964d226e9b0697c2e30e074ae5c8548 (diff)
Fix untracked state of the vcs segment
Diffstat (limited to 'functions')
-rw-r--r--functions/vcs.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh
index 9baccd24..9d3883ca 100644
--- a/functions/vcs.zsh
+++ b/functions/vcs.zsh
@@ -17,7 +17,7 @@ function +vi-git-untracked() {
fi
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' && \
- -n $(git status ${FLAGS} | grep -E '^??' 2> /dev/null | tail -n1) ]]; then
+ -n $(git status ${FLAGS} | grep -E '^\?\?' 2> /dev/null | tail -n1) ]]; then
hook_com[unstaged]+=" $(print_icon 'VCS_UNTRACKED_ICON')"
VCS_WORKDIR_HALF_DIRTY=true
else