22 lines
443 B
Plaintext
Raw Normal View History

# bash completion for resolvconf -*- shell-script -*-
2009-09-14 21:48:03 +02:00
_resolvconf()
{
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
-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-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh