Its a test, maybe worth including.
Doc
# ifconfig completion
#
have ifconfig && _ifconfig()
{
local cur prev
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ $COMP_CWORD -eq 1 ]; then
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --version' -- $cur ) )
else
_available_interfaces
fi
else
COMPREPLY=( $( compgen -W 'add del hostmask netmask broadcast up down ' -- $cur ) )
fi
}
[ "${have:-}" ] && complete -F _ifconfig ifconfig
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

