* Fixed gpg completion:

- -@(r|-recipient))
This commit is contained in:
David Paleino 2008-09-27 12:05:11 +02:00
parent 50c3d7427e
commit f683065d25
2 changed files with 5 additions and 4 deletions

View File

@ -6230,7 +6230,7 @@ _gpg()
return 0 return 0
;; ;;
-@(r|-recipient)) -@(r|-recipient))
COMPREPLY=( $( compgen -W "$( gpg --list-keys 2>/dev/null | sed -ne 's@^pub.*<\([^>]*\)>.*$@\1@p')" -- "$cur" )) COMPREPLY=( $( compgen -W "$( gpg --list-keys 2>/dev/null | sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" ))
if [ -e ~/.gnupg/gpg.conf ]; then if [ -e ~/.gnupg/gpg.conf ]; then
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$( sed -ne 's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' ~/.gnupg/gpg.conf )" -- "$cur") ) COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$( sed -ne 's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' ~/.gnupg/gpg.conf )" -- "$cur") )
fi fi

7
debian/changelog vendored
View File

@ -21,13 +21,14 @@ bash-completion (200809xx) UNRELEASED; urgency=low
- when a non-existing directory is in $PATH (Closes: #499780) - when a non-existing directory is in $PATH (Closes: #499780)
* Fix missing completion for "-n" and "-e" (we were using echo, now * Fix missing completion for "-n" and "-e" (we were using echo, now
using printf) (thanks to Morita Sho) (Closes: #498105) using printf) (thanks to Morita Sho) (Closes: #498105)
* Fixed gpg completion for --@(export|@(?(l|nr|nrl)sign|edit)-key)) * Fixed gpg completion:
(Closes: #500316) - --@(export|@(?(l|nr|nrl)sign|edit)-key)) (Closes: #500316)
- -@(r|-recipient))
* Added gksudo, gksu, kdesudo completion * Added gksudo, gksu, kdesudo completion
* Added apache2ctl completion * Added apache2ctl completion
* debian/links fixed (Closes: #494292) * debian/links fixed (Closes: #494292)
-- David Paleino <d.paleino@gmail.com> Sat, 27 Sep 2008 11:23:18 +0200 -- David Paleino <d.paleino@gmail.com> Sat, 27 Sep 2008 12:04:42 +0200
bash-completion (20080705) unstable; urgency=low bash-completion (20080705) unstable; urgency=low