From 70d6c8b566d8e626cde4a6c3a10fa152272b4b8e Mon Sep 17 00:00:00 2001 From: Joe Bloggs Date: Mon, 7 Jul 2014 02:43:16 +0100 Subject: [PATCH] Completion for dglob Debian package searching command --- src/_dglob | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/_dglob diff --git a/src/_dglob b/src/_dglob new file mode 100644 index 0000000..7cd3589 --- /dev/null +++ b/src/_dglob @@ -0,0 +1,15 @@ +#compdef dglob + +_arguments : '-a[Search through all available packages, not just installed ones.]' \ + '-f[List all files in the matched packages.]' \ + '-0[When listing files (with -f) use "\0" as a separator instead of a newline.]' \ + '-r[The pattern of the current simple filter is a standard POSIX regular expression.]' \ + '-e[Regard the pattern of the current simple filter as an extended POSIX regular expression.]' \ + '-i[Ignore case when looking for a match in the current simple filter.]' \ + '-X[Do an exact match (as opposed to a substring match) in the current simple filter.]' \ + '-v[Instead of showing all the paragraphs that match, show those paragraphs that do not match.]' \ + "1:pattern:{_guard \"[^ ]#\" 'pattern'}" + +# Local Variables: +# mode:shell-script +# End: