summaryrefslogtreecommitdiffstats
path: root/complete/_rg
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2019-04-14 13:15:19 -0400
committerAndrew Gallant <jamslam@gmail.com>2019-04-14 19:29:27 -0400
commit601f212a0b64d5aa63dd9ef19c9409f5e9194181 (patch)
treec9583eecfb16995f79764509d4a5e0d9b7dceea2 /complete/_rg
parent5a565354f8b41ba5fad0a509a0c0078c12e17fe5 (diff)
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
Diffstat (limited to 'complete/_rg')
-rw-r--r--complete/_rg2
1 files changed, 1 insertions, 1 deletions
diff --git a/complete/_rg b/complete/_rg
index 6c2ee2bb..f20a5a07 100644
--- a/complete/_rg
+++ b/complete/_rg
@@ -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]"