fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
ce245704d
master
1# Searching 2complete -c ack -s i -l ignore-case -d'Ignore case' 3complete -c ack -l smart-case -d'Ignore case when pattern contains no uppercase' 4complete -c ack -l nosmart-case -l no-smart-case -d'Don\'t ignore case' 5complete -c ack -s v -l invert-match -d'Invert match' 6complete -c ack -s w -l word-regexp -d'Match only whole words' 7complete -c ack -s Q -l literal -d'Quote all metacharacters' 8 9# Search output 10complete -c ack -l lines -d'Only print line(s) NUM of each file' 11complete -c ack -s l -l files-with-matches -d'Only print filenames containing matches' 12complete -c ack -s L -l files-without-matches -d'Only print filenames with no matches' 13complete -c ack -l output -d'Output the evaluation of Perl expression for each line' 14complete -c ack -s o -d'Output the part of line matching pattern' 15complete -c ack -l passthru -d'Print all lines' 16complete -c ack -l match -d'Specify pattern explicitly' 17complete -c ack -s m -l max-count -d'Stop searching in each file after NUM matches' 18complete -c ack -s1 -d'Stop searching after first match' 19complete -c ack -s H -l with-filename -d'Print the filename for each match' 20complete -c ack -s h -l no-filename -d'Suppress the prefixing filename on output' 21complete -c ack -s c -l count -d'Show number of lines matching per file' 22complete -c ack -l column -d'Show column number of first match' 23complete -c ack -l nocolumn -l no-column -d'Don\'t show column number of first match' 24complete -c ack -x -s A -l after-context -d'Print NUM lines of trailing context' 25complete -c ack -x -s B -l before-context -d'Print NUM lines of leading context' 26complete -c ack -x -s C -l context -d'Print NUM lines of context' 27complete -c ack -l print0 -d'Print null byte as separator between filenames' 28complete -c ack -s s -d'Suppress error messages about file errors' 29 30# File presentation 31complete -c ack -l pager -d'Pipes all ack output through command' 32complete -c ack -l nopager -l no-pager -d'Do not send output through a pager' 33complete -c ack -l heading -d'Prints a filename heading above file\'s results' 34complete -c ack -l noheading -l no-heading -d'Don\'t print a filename heading above file\'s results' 35complete -c ack -l break -d'Print a break between results' 36complete -c ack -l nobreak -l no-break -d'Don\'t print a break between results' 37complete -c ack -l group -d'Filename heading and line break between results' 38complete -c ack -l nogroup -l no-group -d'No filename heading and no line breaks between results' 39complete -c ack -l color -d'Highlight the matching text' 40complete -c ack -l nocolor -l no-color -l nocolour -l no-colour -d'Don\'t highlight the matching text' 41complete -c ack -l color-filename -d'Set the color for filenames' 42complete -c ack -l color-match -d'Set the color for matches' 43complete -c ack -l color-lineno -d'Set the color for line numbers' 44complete -c ack -l flush -d'Flush output immediately' 45 46# File finding 47complete -c ack -s f -d'Only print the files selected' 48complete -c ack -s g -d'Only select files matching pattern' 49complete -c ack -l sort-files -d'Sort the found files lexically' 50complete -c ack -l show-types -d'Show which types each file has' 51complete -c ack -l files-from -d'Read the list of files to search from file' 52complete -c ack -s x -d'Read the list of files to search from STDIN' 53 54# File inclusion/exclusion 55complete -c ack -l ignore-dir -l ignore-directory -d'Ignore directory' 56complete -c ack -l noignore-dir -l no-ignore-dir -l noignore-directory -l no-ignore-directory -d'Don\'t ignore directory' 57complete -c ack -l ignore-file -d'Add filter for ignoring files' 58complete -c ack -s r -s R -l recurse -d'Recurse into subdirectories' 59complete -c ack -s n -l no-recurse -d'No descending into subdirectories' 60complete -c ack -l follow -d'Follow symlinks' 61complete -c ack -l nofollow -l no-follow -d'Don\'t follow symlinks' 62complete -c ack -s k -l known-types -d'Include only recognized files' 63complete -c ack -l type -d'Include only X files' 64 65# File type specification 66complete -c ack -l type-set -d'Replaces definition of type' 67complete -c ack -l type-add -d'Specify definition of type' 68complete -c ack -l type-del -d'Removes all filters associated with type' 69 70# Miscellaneous 71complete -c ack -l noenv -l no-env -d'Ignores environment variables and ackrc files' 72complete -c ack -l ackrc -d'Specifies location of ackrc file' 73complete -c ack -l ignore-ack-defaults -d'Ignore default definitions ack includes' 74complete -c ack -l create-ackrc -d'Outputs default ackrc' 75complete -c ack -s\? -l help -d'Shows help' 76complete -c ack -l help-types -d'Shows all known types' 77complete -c ack -l dump -d'Dump information on which options are loaded' 78complete -c ack -l filter -d'Forces ack to treat input as a pipe' 79complete -c ack -l nofilter -l no-filter -d'Forces ack to treat input as tty' 80complete -c ack -l man -d'Shows man page' 81complete -c ack -l version -d'Displays version and copyright' 82complete -c ack -l thpppt -d'Bill the Cat' 83complete -c ack -l bar -d'The warning admiral' 84 85# File types 86if type ack> /dev/null 87for typein ( ack --dump2> /dev/null| perl -lne'print $1 if /^\s+--type-add=([^:]+)/' | uniq ) 88complete -c ack -l$type -d"Allow $type file type" 89complete -c ack -l no$type -l no-$type -d"Don't allow $type file type" 90end 91end