# tcpkill completion -*- shell-script -*- proc _tcpkill { local cur prev words cword _init_completion || return match $prev { with -i _available_interfaces -a return 0 } if [[ "$cur" == -* ]] { setglobal COMPREPLY = ''( $( compgen -W '-i -1 -2 -3 -4 -5 -6 -7 -8 -9' -- "$cur" ) ) } } && complete -F _tcpkill tcpkill # ex: ts=4 sw=4 et filetype=sh