2011-11-01 22:14:45 +02:00
|
|
|
# bash completion for resolvconf -*- shell-script -*-
|
2009-09-14 21:48:03 +02:00
|
|
|
|
|
|
|
_resolvconf()
|
|
|
|
{
|
2011-04-21 11:04:51 +03:00
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
2009-09-14 21:48:03 +02:00
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
case $prev in
|
2009-11-22 11:43:26 +01:00
|
|
|
-a|-d)
|
2009-10-04 19:42:50 +02:00
|
|
|
_available_interfaces
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [[ "$cur" == -* ]]; then
|
|
|
|
COMPREPLY=( $( compgen -W '-a -d -u' -- "$cur" ) )
|
|
|
|
fi
|
2009-09-14 21:48:03 +02:00
|
|
|
} &&
|
|
|
|
complete -F _resolvconf resolvconf
|
2009-10-01 20:54:51 +03:00
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|