From cd58e6129c2525f66e9309359a34b5b5e5a647c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Martinez?= Date: Sat, 28 Jan 2017 20:14:34 +0100 Subject: [PATCH] Improve grep completions --- share/completions/grep.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/completions/grep.fish b/share/completions/grep.fish index 07172a91c..126c6a650 100644 --- a/share/completions/grep.fish +++ b/share/completions/grep.fish @@ -3,9 +3,9 @@ complete -c grep -s a -l text --description "Process binary file as text" complete -c grep -s B -l before-context --description "Print NUM lines of leading context" complete -c grep -s C -l context --description "Print NUM lines of context" complete -c grep -s b -l byte-offset --description "Print byte offset of matches" -complete -c grep -l binary-files --description "Assume data type for binary files" -x -a "binary text" -complete -c grep -l colour -x -a "never always auto" -complete -c grep -l color -x -a "never always auto" +complete -c grep -l binary-files --description "Assume data type for binary files" -x -a "binary\tBinary\ format text\tText\ format" +complete -c grep -l colour -x --description "Colour output" -a "never always auto" +complete -c grep -l color -x --description "Color output" -a "never always auto" complete -c grep -s c -l count --description "Only print number of matches" complete -c grep -s D -l devices -x -a "read skip" --description "Action for devices" complete -c grep -s d -l directories -x -a "read skip recurse" --description "Action for directories" @@ -44,6 +44,6 @@ complete -c grep -s V -l version --description "Display version and exit" complete -c grep -s v -l invert-match --description "Invert the sense of matching" complete -c grep -s w -l word-regexp --description "Only whole matching words" complete -c grep -s x -l line-regexp --description "Only whole matching lines" -complete -c grep -s y --description "Obsolete synonym for -i" -complete -c grep -s z -l null-data --description 'treat input as a set of lines each terminated by a zero byte' +complete -c grep -s y --description "Ignore case (deprecated: use -i instead)" +complete -c grep -s z -l null-data --description "Treat input as a set of zero-terminated lines" complete -c grep -s Z -l null --description "Output a zero byte after filename"