2009-06-05 21:44:02 +02:00

15 lines
241 B
Plaintext

# PINE address-book completion
#
have pine &&
_pineaddr()
{
local cur
COMPREPLY=()
cur=`_get_cword`
COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook 2>/dev/null)' \
-- $cur ) )
} &&
complete -F _pineaddr $default pine