From mm at dorfdsl.de Thu Jul 3 21:21:14 2025 From: mm at dorfdsl.de (Marco Moock) Date: Thu, 3 Jul 2025 21:21:14 +0200 Subject: gpgsm bash completion Message-ID: <20250703212114.49ee0baa@ryz.dorfdsl.de> Hello! I am running Debian with 2.4.8-1. I noticed that gpg support bash command completion, but gpgsm doesn't. Was that ever available for gpgsm? -- Gru? Marco Send unsolicited bulk mail to 1751570321muell at stinkedores.dorfdsl.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From collin.funk1 at gmail.com Sun Jul 6 02:10:10 2025 From: collin.funk1 at gmail.com (Collin Funk) Date: Sat, 05 Jul 2025 17:10:10 -0700 Subject: gpgsm bash completion In-Reply-To: <20250703212114.49ee0baa@ryz.dorfdsl.de> References: <20250703212114.49ee0baa@ryz.dorfdsl.de> Message-ID: <87ldp2mb6l.fsf@gmail.com> Hi Marco, Marco Moock via Gnupg-users writes: > I am running Debian with 2.4.8-1. > > I noticed that gpg support bash command completion, but gpgsm doesn't. > Was that ever available for gpgsm? The bash completions for 'gpg' are maintained by the bash-completion project, not GnuPG [1][2][3]. I suppose whoever wrote them originally did not use the 'gpgsm' command, since it does not have completions implemented. I'm sure they would be happy to accept the contribution if you or someone else implemented it. The completions for the other commands should be a good reference. Collin [1] https://github.com/scop/bash-completion/blob/51b009f6a653c66454816e9bc869c40f61329764/completions/gpg [2] https://github.com/scop/bash-completion/blob/51b009f6a653c66454816e9bc869c40f61329764/completions/gpg2 [3] https://github.com/scop/bash-completion/blob/51b009f6a653c66454816e9bc869c40f61329764/completions/gpgv From wk at gnupg.org Sat Jul 5 13:11:14 2025 From: wk at gnupg.org (Werner Koch) Date: Sat, 05 Jul 2025 13:11:14 +0200 Subject: gpgsm bash completion In-Reply-To: <20250703212114.49ee0baa@ryz.dorfdsl.de> (Marco Moock via Gnupg-users's message of "Thu, 3 Jul 2025 21:21:14 +0200") References: <20250703212114.49ee0baa@ryz.dorfdsl.de> Message-ID: <8734ba51v1.fsf@jacob.g10code.de> On Thu, 3 Jul 2025 21:21, Marco Moock said: > I noticed that gpg support bash command completion, but gpgsm doesn't. > Was that ever available for gpgsm? No idea. Should be easy to implement by parsing "gpgsm --dump-options". Salam-Shalom, Werner -- The pioneers of a warless world are the youth that refuse military service. - A. Einstein -------------- next part -------------- A non-text attachment was scrubbed... Name: openpgp-digital-signature.asc Type: application/pgp-signature Size: 247 bytes Desc: not available URL: From collin.funk1 at gmail.com Sun Jul 6 22:03:12 2025 From: collin.funk1 at gmail.com (Collin Funk) Date: Sun, 06 Jul 2025 13:03:12 -0700 Subject: gpgsm bash completion In-Reply-To: <8734ba51v1.fsf@jacob.g10code.de> References: <20250703212114.49ee0baa@ryz.dorfdsl.de> <8734ba51v1.fsf@jacob.g10code.de> Message-ID: <87ldp184u7.fsf@gmail.com> Werner Koch via Gnupg-users writes: > On Thu, 3 Jul 2025 21:21, Marco Moock said: > >> I noticed that gpg support bash command completion, but gpgsm doesn't. >> Was that ever available for gpgsm? > > No idea. Should be easy to implement by parsing "gpgsm --dump-options". Yep, that is what the completions do for 'gpg', 'gpgv', etc. Atleast, it does that after handling context-specific completions. For example, 'gpg --edit-key' and pressing tab for completions will execute 'gpg --list-keys' to suggest keys that you might want to edit. Collin -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 832 bytes Desc: not available URL: