mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
completions/grep: specify some required parameters
This commit is contained in:
parent
466b6e1b43
commit
203a2e7af4
1 changed files with 8 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
complete -c grep -s A -l after-context -d "Print NUM lines of trailing context"
|
||||
complete -c grep -s A -l after-context -d "Print NUM lines of trailing context" -x
|
||||
complete -c grep -s a -l text -d "Process binary file as text"
|
||||
complete -c grep -s B -l before-context -d "Print NUM lines of leading context"
|
||||
complete -c grep -s C -l context -d "Print NUM lines of context"
|
||||
complete -c grep -s B -l before-context -d "Print NUM lines of leading context" -x
|
||||
complete -c grep -s C -l context -d "Print NUM lines of context" -x
|
||||
complete -c grep -s b -l byte-offset -d "Print byte offset of matches"
|
||||
complete -c grep -l binary-files -d "Assume data type for binary files" -x -a "binary\tBinary\ format text\tText\ format"
|
||||
complete -c grep -l colour -f -d "Colour output" -a "never always auto"
|
||||
|
@ -10,11 +10,11 @@ complete -c grep -s c -l count -d "Only print number of matches"
|
|||
complete -c grep -s D -l devices -x -a "read skip" -d "Action for devices"
|
||||
complete -c grep -s d -l directories -x -a "read skip recurse" -d "Action for directories"
|
||||
complete -c grep -s E -l extended-regexp -d "Pattern is extended regexp"
|
||||
complete -xc grep -s e -l regexp -d "Pattern is a regexp"
|
||||
complete -xc grep -s e -l regexp -d "Specify a pattern"
|
||||
complete -rc grep -l exclude-from -d "Read pattern list from file. Skip files whose base name matches list"
|
||||
complete -rc grep -l exclude-dir -d "Exclude matching directories from recursive searches"
|
||||
complete -c grep -s F -l fixed-strings -d "Pattern is a fixed string"
|
||||
complete -rc grep -s f -l file -r -d "Use patterns from a file"
|
||||
complete -rc grep -s f -l file -d "Use patterns from a file"
|
||||
complete -c grep -s G -l basic-regexp -d "Pattern is basic regex"
|
||||
complete -c grep -s H -l with-filename -d "Print filename"
|
||||
complete -c grep -s h -l no-filename -d "Suppress printing filename"
|
||||
|
@ -27,15 +27,15 @@ complete -c grep -s m -l max-count -d "Stop reading after NUM matches"
|
|||
complete -c grep -l mmap -d "Use the mmap system call to read input"
|
||||
complete -c grep -s n -l line-number -d "Print line number"
|
||||
complete -c grep -s o -l only-matching -d "Show only matching part"
|
||||
complete -c grep -l label -d "Rename stdin"
|
||||
complete -c grep -l label -d "Rename stdin" -x
|
||||
complete -c grep -l line-buffered -d "Use line buffering"
|
||||
complete -c grep -s P -l perl-regexp -d "Pattern is a Perl regexp (PCRE) string"
|
||||
complete -c grep -s q -l quiet -d "Do not write anything"
|
||||
complete -c grep -l silent -d "Do not write anything"
|
||||
complete -c grep -s R -l recursive -d "Read files under each directory, recursively"
|
||||
complete -c grep -s r -d "Read files under each directory, recursively"
|
||||
complete -c grep -l include -d "Search only files matching PATTERN"
|
||||
complete -c grep -l exclude -d "Skip files matching PATTERN"
|
||||
complete -c grep -l include -d "Search only files matching PATTERN" -r
|
||||
complete -c grep -l exclude -d "Skip files matching PATTERN" -r
|
||||
complete -c grep -s s -l no-messages -d "Suppress error messages"
|
||||
complete -c grep -s T -l initial-tab -d "Ensure first character of actual line content lies on a tab stop"
|
||||
complete -c grep -s U -l binary -d "Treat files as binary"
|
||||
|
|
Loading…
Reference in a new issue