fish-shell/init/completions/grep.fish
axel 7ddecde543 Add subdirectories
darcs-hash:20050920133155-ac50b-9a14c6c664dd03afbe8e15e7c7998fcfb5c3c750.gz
2005-09-20 23:31:55 +10:00

48 lines
2.8 KiB
Fish

complete -c grep -s A -l after-context -d "Print NUM lines of trailing context"
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 byte-offset -d "Print byte offset of matches"
complete -c grep -l binary-files -d "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 -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 -c grep -s F -l fixed -d "Pattern is a fixed string"
complete -c grep -s f -l file -r -d "Use pattern from 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 "Supress printing filename"
complete -c grep -l help -d "Display help and exit"
complete -c grep -s I -d "Skip binary files"
complete -c grep -s i -l ignore-case -d "Ignore case"
complete -c grep -s L -l files-without-match -d "Print first non-matching file"
complete -c grep -s l -l files-with-match -d "Print first matching file"
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 linenumber"
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 line-buffered -d "Use line buffering"
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"
complete -c grep -s r -d "Read files under each directory"
complete -c grep -l include -d "Recurse, search file matching PATTERN"
complete -c grep -l exclude -d "Recurse, skip file matching PATTERN"
complete -c grep -s s -l no-messages -d "Suppress error messages"
complete -c grep -s U -l binary -d "Treat files as binary"
complete -c grep -s u -l unix-byte-offsets -d "Report Unix-style byte offsets"
complete -c grep -s V -l version -d "Print the version number"
complete -c grep -s v -l invert-match -d "Invert the sense of matching"
complete -c grep -s w -l word-regexp -d "Only whole matching words"
complete -c grep -s x -l line-regexp -d "Only whole matching lines"
complete -c grep -s y -d "Synonym for -i"
complete -c grep -s Z -l null -d "Output a zero byte after filename"