blob: c69fc2d266d7528fd7a42c1ca86ceb56a67bc7f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# arping(8) completion -*- shell-script -*-
_comp_cmd_arping()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
case $prev in
-*c | -*w)
return
;;
-*I)
_comp_compgen_available_interfaces -a
return
;;
-*s)
_comp_compgen_ip_addresses
return
;;
esac
if [[ $cur == -* ]]; then
_comp_compgen_help -- -h
return
fi
_comp_compgen_known_hosts -- "$cur"
} &&
complete -F _comp_cmd_arping arping
# ex: filetype=sh
|