summaryrefslogtreecommitdiffstats
path: root/completions/arpspoof
diff options
context:
space:
mode:
Diffstat (limited to 'completions/arpspoof')
-rw-r--r--completions/arpspoof16
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/arpspoof b/completions/arpspoof
index d1a1373..8939f2d 100644
--- a/completions/arpspoof
+++ b/completions/arpspoof
@@ -1,28 +1,28 @@
# arpspoof completion -*- shell-script -*-
-_arpspoof()
+_comp_cmd_arpspoof()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
case $prev in
-i)
- _available_interfaces -a
+ _comp_compgen_available_interfaces -a
return
;;
-t)
- _known_hosts_real -- "$cur"
+ _comp_compgen_known_hosts -- "$cur"
return
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur"))
+ _comp_compgen_usage
else
- _known_hosts_real -- "$cur"
+ _comp_compgen_known_hosts -- "$cur"
fi
} &&
- complete -F _arpspoof arpspoof
+ complete -F _comp_cmd_arpspoof arpspoof
# ex: filetype=sh