aboutsummaryrefslogtreecommitdiff
path: root/functions/vcs.zsh
diff options
context:
space:
mode:
authorDan <2481552+opes@users.noreply.github.com>2018-04-30 21:07:55 +0300
committerGitHub <noreply@github.com>2018-04-30 21:07:55 +0300
commitfbb85e77e3dc307c21b79c655302158077fad916 (patch)
treef31b99e9fa274d247551537a694f615167895379 /functions/vcs.zsh
parent75c6838a0dbb2fc84f2cf7d71cae9b147b04a379 (diff)
parent13b0e383a066c9c37d5cf71d4af521f9b73a173e (diff)
Merge branch 'master' into chruby_options
Diffstat (limited to 'functions/vcs.zsh')
-rw-r--r--functions/vcs.zsh8
1 files changed, 4 insertions, 4 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh
index c3e507b9..89f04143 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
@@ -137,15 +137,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