diff options
author | Ben Hilburn <bhilburn@deepsig.io> | 2017-12-14 23:20:02 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@deepsig.io> | 2017-12-14 23:20:02 +0300 |
commit | ea05b4ebe612c37cad47aa7acdfa88769bf50087 (patch) | |
tree | f68a5fb274a631a8163748f8ec36161092eda993 /functions/vcs.zsh | |
parent | 40b500cda265e400760a1d17b14d2805abcacfb2 (diff) | |
parent | c50eb9cdda0992d7f717fe5ffaea8812ea5146f9 (diff) |
Merge branch 'master' into next
Diffstat (limited to 'functions/vcs.zsh')
-rw-r--r-- | functions/vcs.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh index d80bca8e..e2e9f3a3 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 @@ -139,15 +139,15 @@ function +vi-vcs-detect-changes() { function +vi-svn-detect-changes() { local svn_status="$(svn status)" - if [[ -n "$(echo "$svn_status" | grep \^\?)" ]]; then + if [[ -n "$(echo "$svn_status" | \grep \^\?)" ]]; then hook_com[unstaged]+=" $(print_icon 'VCS_UNTRACKED_ICON')" VCS_WORKDIR_HALF_DIRTY=true fi - if [[ -n "$(echo "$svn_status" | grep \^\M)" ]]; then + if [[ -n "$(echo "$svn_status" | \grep \^\M)" ]]; then hook_com[unstaged]+=" $(print_icon 'VCS_UNSTAGED_ICON')" VCS_WORKDIR_DIRTY=true fi - if [[ -n "$(echo "$svn_status" | grep \^\A)" ]]; then + if [[ -n "$(echo "$svn_status" | \grep \^\A)" ]]; then hook_com[staged]+=" $(print_icon 'VCS_STAGED_ICON')" VCS_WORKDIR_DIRTY=true fi |