# iwspy completion -*- shell-script -*- proc _iwspy { local cur prev words cword _init_completion || return if [[ $cword -eq 1 ]] { if [[ "$cur" == -* ]] { setglobal COMPREPLY = ''( $( compgen -W '--help --version' -- "$cur" ) ) } else { _available_interfaces -w } } else { setglobal COMPREPLY = ''( $( compgen -W 'setthr getthr off' -- "$cur" ) ) } } && complete -F _iwspy iwspy # ex: ts=4 sw=4 et filetype=sh