2011-11-01 22:14:45 +02:00
|
|
|
# mailman list_lists completion -*- shell-script -*-
|
2011-10-12 23:01:10 +03:00
|
|
|
|
2011-10-22 12:49:31 +03:00
|
|
|
_mailman_lists()
|
|
|
|
{
|
|
|
|
COMPREPLY=( $( compgen -W '$( list_lists -b 2>/dev/null )' -- "$cur" ) )
|
|
|
|
}
|
|
|
|
|
2011-10-12 23:01:10 +03:00
|
|
|
_list_lists()
|
|
|
|
{
|
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
|
|
|
|
|
|
|
if [[ "$cur" == -* ]]; then
|
2013-02-17 23:49:30 +02:00
|
|
|
COMPREPLY=( $( compgen -W '--advertised --virtual-host-overview --bare
|
|
|
|
--help' -- "$cur" ) )
|
2011-10-12 23:01:10 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
} &&
|
|
|
|
complete -F _list_lists list_lists
|
|
|
|
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|