From: Mikael Magnusson <mikachu@gmail.com>
To: Philipp Hartwig <philipp.hartwig@uni-due.de>
Cc: zsh-users@zsh.org
Subject: Re: completion for gpg not working
Date: Wed, 16 Mar 2011 13:31:43 +0100 [thread overview]
Message-ID: <AANLkTinhw4LA929ss55uqAmPTBzQphZtwyGBa13Q1993@mail.gmail.com> (raw)
In-Reply-To: <20110315223435.GD2096@debian>
On 15 March 2011 23:34, Philipp Hartwig <philipp.hartwig@uni-due.de> wrote:
> Hello,
>
> I'm using zsh 4.3.11-4 from Debian.
>
> With zsh -f and then
>
> $ autoload -Uz compinit
> $ compinit
> $ zstyle ':completion:*' completer _complete _approximate
>
> typing
>
> $ gpg --ver<tab>
>
> "completes" to
>
> $ gpg --armor
> zsh: do you wish to see all 217 possibilities (78 lines)?
>
> The _gpg completion file distributed with Debian is identical to the one
> distributed with the official Zsh 4.3.11.
>
> It would be great if this could be fixed.
http://cgit.mika.l3ib.org/cgit/zsh-cvs/patch/?id=223537ef09490f5fdeba8941a058047755c658cf
diff --git a/Completion/Unix/Command/_gpg b/Completion/Unix/Command/_gpg
index 3f86411..3043f7a 100644
--- a/Completion/Unix/Command/_gpg
+++ b/Completion/Unix/Command/_gpg
@@ -193,15 +193,15 @@ gpgextra=('--decrypt-files[decrypt multiple files]'
case "$service" in
gpg)
- _arguments -C -s -S -A "-*" $gpgbasic $gpgextra $gpgv '*:args:->args'
+ _arguments -C -s -S -A "-*" $gpgbasic $gpgextra $gpgv
'*:args:->args' && ret=0
;;
gpgv)
- _arguments -C -s -S -A "-*" $gpgv '*:args:->args'
+ _arguments -C -s -S -A "-*" $gpgv '*:args:->args' && ret=0
;;
gpg-zip)
- _arguments -C -s -S -A "-*" $gpgbasic $gpgzip '*:args:->args'
+ _arguments -C -s -S -A "-*" $gpgbasic $gpgzip '*:args:->args' && ret=0
;;
esac
--
Mikael Magnusson
next prev parent reply other threads:[~2011-03-16 12:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-15 22:34 Philipp Hartwig
2011-03-16 12:31 ` Mikael Magnusson [this message]
2011-03-16 13:50 ` Philipp Hartwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTinhw4LA929ss55uqAmPTBzQphZtwyGBa13Q1993@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=philipp.hartwig@uni-due.de \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).