Apply pine completion to alpine too.

This commit is contained in:
Ville Skyttä 2009-10-11 22:16:35 +03:00
parent e2c1f4117f
commit b2d7d98eeb
2 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ bash-completion (1.x)
* Include profile snippet in tarball, install it. * Include profile snippet in tarball, install it.
* Rename contrib/bluez-utils to contrib/bluez to follow bluez 4.x naming. * Rename contrib/bluez-utils to contrib/bluez to follow bluez 4.x naming.
* Apply cardctl completion to pccardctl too. * Apply cardctl completion to pccardctl too.
* Apply pine completion to alpine too.
-- David Paleino <d.paleino@gmail.com> Sun, 11 Oct 2009 11:11:57 +0200 -- David Paleino <d.paleino@gmail.com> Sun, 11 Oct 2009 11:11:57 +0200

View File

@ -1,6 +1,6 @@
# PINE address-book completion # PINE address-book completion
have pine && have pine || have alpine &&
_pineaddr() _pineaddr()
{ {
local cur local cur
@ -11,7 +11,7 @@ _pineaddr()
COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook \ COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook \
2>/dev/null)' -- "$cur" ) ) 2>/dev/null)' -- "$cur" ) )
} && } &&
complete -F _pineaddr $default pine complete -F _pineaddr $default pine alpine
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script