summaryrefslogtreecommitdiffstats
path: root/completions/iwspy
blob: e097d957f515705282a71146cae0a55cc1cf8949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# iwspy completion                                         -*- shell-script -*-

_comp_cmd_iwspy()
{
    local cur prev words cword comp_args
    _comp_initialize -- "$@" || return

    if ((cword == 1)); then
        if [[ $cur == -* ]]; then
            _comp_compgen -- -W '--help --version'
        else
            _comp_compgen_available_interfaces -w
        fi
    else
        _comp_compgen -- -W 'setthr getthr off'
    fi
} &&
    complete -F _comp_cmd_iwspy iwspy

# ex: filetype=sh