diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-12-05 03:58:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 03:58:11 +0300 |
commit | bf9d8a5ddbcc3379648650d83d5d56216f2e5581 (patch) | |
tree | 0d07dd7c7c9130a54c93a55f4750bddbbb79a908 | |
parent | 42b72423467b5457d1feb0b307712dc7badf80e5 (diff) | |
parent | f154e75667aff0801c3d978b44f5e4551d91e240 (diff) |
Merge pull request #685 from kenhys/disable-alias-grep
vcs: Disable alias of grep to fix performance penalty
-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 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 |