ripgrep: add -I as a short option for --no-filename

This flag is commonly used in pipelines and it can be annoying to write
it out every time you need it.

Ideally, we would use -h for this to match GNU grep, but -h is used to
print help output.

Closes #1185
This commit is contained in:
Andrew Gallant
2019-04-14 13:15:19 -04:00
parent 5a565354f8
commit 601f212a0b
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ _rg() {
+ '(file-name)' # File-name options
{-H,--with-filename}'[show file name for matches]'
"--no-filename[don't show file name for matches]"
{-I,--no-filename}"[don't show file name for matches]"
+ '(file-system)' # File system options
"--one-file-system[don't descend into directories on other file systems]"