mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
Improve grep completions
This commit is contained in:
parent
f48291b70c
commit
cd58e6129c
1 changed files with 5 additions and 5 deletions
|
@ -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 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 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 -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 binary-files --description "Assume data type for binary files" -x -a "binary\tBinary\ format text\tText\ format"
|
||||||
complete -c grep -l colour -x -a "never always auto"
|
complete -c grep -l colour -x --description "Colour output" -a "never always auto"
|
||||||
complete -c grep -l color -x -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 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 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"
|
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 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 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 x -l line-regexp --description "Only whole matching lines"
|
||||||
complete -c grep -s y --description "Obsolete synonym for -i"
|
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 lines each terminated by a zero byte'
|
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"
|
complete -c grep -s Z -l null --description "Output a zero byte after filename"
|
||||||
|
|
Loading…
Reference in a new issue