Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _reportbug: Complete absolute filenames, too.
- X-seq: zsh-workers 39480
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _reportbug: Complete absolute filenames, too.
- Date: Wed, 28 Sep 2016 18:11:19 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=	daniel.shahaf.name; h=date:from:message-id:subject:to:x-sasl-enc	:x-sasl-enc; s=mesmtp; bh=0kgsjhG1xIqwb81Uj4ChgCdOL4c=; b=GXsrzb	+WxVUYG15GZbg2fciwLqv16CHdh+pMkNNmDfvdOD4jyH7UOfxxotEG9B8XqlO6Ty	EIYkFa9TmRGNtZ9SRTdvl/hHzLbjTejHw756vfU4UBA/ufKTdjY3J5cEBhegEJOL	0uCh4KeopVgQ+VRgCXVblQAR5G9xcgrUkhATk=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=	messagingengine.com; h=date:from:message-id:subject:to	:x-sasl-enc:x-sasl-enc; s=smtpout; bh=0kgsjhG1xIqwb81Uj4ChgCdOL4	c=; b=AuOwWcwwQRELPdVdK7whKzaXmkNKU+C2au9pbpcevPqQoVQXzLt8bgQJBs	CZXjsj4PhNFtMsQS+CPV5TMGIkptInHUpjuRbyoIgNaqjw5pp1HVCnxnJF6sSPFk	3VfFungPn9O8dh34OgUF95hSc4GEeIliYxatGN392D60U3NkY=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
---
 Completion/Debian/Command/_bug | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Completion/Debian/Command/_bug b/Completion/Debian/Command/_bug
index 2dc14d4..436d294 100644
--- a/Completion/Debian/Command/_bug
+++ b/Completion/Debian/Command/_bug
@@ -7,7 +7,6 @@ _bug_commonargs=(
   '-m[maintainer-only]'
   '-p[print to stdout instead of mail]'
   '-h[help]'
-  '*:package:_deb_packages installed'
 )
 
 _rb_commonargs=(
@@ -29,6 +28,7 @@ case "$service" in
       '-v[version]' \
       '-x[do not cc submitter]' \
       '-z[send configs verbatim]' \
+      '*:package:_deb_packages installed' \
       "$_bug_commonargs[@]"
   ;;
   reportbug)
@@ -92,6 +92,7 @@ case "$service" in
       '(--paranoid)--no-paranoid' \
       '--body=:message body string' \
       '--body-file=:message body file:_files' \
+      '*:package: _alternative "packages::_deb_packages installed" "files::{ [[ \$PREFIX[1] == / ]] && _files }"' \
       "$_bug_commonargs[@]" \
       "$_rb_commonargs[@]"
   ;;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author