Force grep to produce colourless output.

This commit is contained in:
Andy Stewart
2015-03-03 10:52:07 +01:00
parent f6d5b8297f
commit 1fae335a65
2 changed files with 1 additions and 2 deletions

View File

@@ -310,7 +310,6 @@ Here are some things you can check:
* Your Vim supports signs (`:echo has('signs')` should give `1`).
* Your file is being tracked by git and has unstaged, saved changes.
* If you use the Fish shell, or another non-POSIX shell, add `set shell=/bin/bash` to your `~/.vimrc`.
* Make sure your grep produces colourless output, e.g. with `export GREP_OPTIONS='--color=auto'`.
### Shameless Plug

View File

@@ -1,5 +1,5 @@
let s:grep_available = executable('grep')
let s:grep_command = ' | '.(g:gitgutter_escape_grep ? '\grep' : 'grep').' -e '.gitgutter#utility#shellescape('^@@ ')
let s:grep_command = ' | '.(g:gitgutter_escape_grep ? '\grep' : 'grep').' --color=never -e '.gitgutter#utility#shellescape('^@@ ')
let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'