blob: efac3e6edb2d6f793f2f972fc4dcaffeabd09448 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# iwlist completion -*- shell-script -*-
_comp_cmd_iwlist()
{
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 'scan scanning freq frequency channel rate bit
bitrate key enc encryption power txpower retry ap accesspoint peers
event'
fi
} &&
complete -F _comp_cmd_iwlist iwlist
# ex: filetype=sh
|