diff options
author | Greg Dietsche <Gregory.Dietsche@cuw.edu> | 2013-04-03 14:53:15 -0500 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-07 16:42:28 -0700 |
commit | c641f5cbdc2fcaf77daa38487dd7c7a3c0444ca0 (patch) | |
tree | a0fca01d666e5527952a4e516e557aa8887e44d6 /share/completions | |
parent | c6302e3b3fba21f426720f75d411687221f85e13 (diff) |
grep: fix and add completions
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Diffstat (limited to 'share/completions')
-rw-r--r-- | share/completions/grep.fish | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/share/completions/grep.fish b/share/completions/grep.fish index 2785e735..7f8df25c 100644 --- a/share/completions/grep.fish +++ b/share/completions/grep.fish @@ -15,8 +15,10 @@ complete -c grep -s D -l devices -x -a "read skip" --description "Action for dev complete -c grep -s d -l directories -x -a "read skip recurse" --description "Action for directories" complete -c grep -s E -l extended-regexp --description "Pattern is extended regexp" complete -xc grep -s e -l regexp --description "Pattern is a regexp" -complete -c grep -s F -l fixed --description "Pattern is a fixed string" -complete -c grep -s f -l file -r --description "Use pattern from file" +complete -rc grep -l exclude-from --description "Read pattern list from file. Skip files whose base name matches list" +complete -rc grep -l exclude-dir --description "Exclude matching directories from recursive searches" +complete -c grep -s F -l fixed-strings --description "Pattern is a fixed string" +complete -rc grep -s f -l file -r --description "Use patterns from a file" complete -c grep -s G -l basic-regexp --description "Pattern is basic regex" complete -c grep -s H -l with-filename --description "Print filename" complete -c grep -s h -l no-filename --description "Suppress printing filename" @@ -31,20 +33,21 @@ complete -c grep -s n -l line-number --description "Print line number" complete -c grep -s o -l only-matching --description "Show only matching part" complete -c grep -l label --description "Rename stdin" complete -c grep -l line-buffered --description "Use line buffering" +complete -c grep -s P -l perl-regexp --description "Pattern is a Perl regexp (PCRE) string" complete -c grep -s q -l quiet --description "Do not write anything" complete -c grep -l silent --description "Do not write anything" -complete -c grep -s R -l recursive --description "Read files under each directory" -complete -c grep -s r --description "Read files under each directory" -complete -c grep -l include --description "Recurse, search file matching PATTERN" -complete -c grep -l exclude --description "Recurse, skip file matching PATTERN" +complete -c grep -s R -l recursive --description "Read files under each directory, recursively" +complete -c grep -s r --description "Read files under each directory, recursively" +complete -c grep -l include --description "Search only files matching PATTERN" +complete -c grep -l exclude --description "Skip files matching PATTERN" complete -c grep -s s -l no-messages --description "Suppress error messages" +complete -c grep -s T -l initial-tab --description "Ensure first character of actual line content lies on a tab stop" complete -c grep -s U -l binary --description "Treat files as binary" complete -c grep -s u -l unix-byte-offsets --description "Report Unix-style byte offsets" 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 "Synonym for -i" +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 Z -l null --description "Output a zero byte after filename" - - |