summaryrefslogtreecommitdiffstats
path: root/completions/tcpkill
diff options
context:
space:
mode:
Diffstat (limited to 'completions/tcpkill')
-rw-r--r--completions/tcpkill12
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/tcpkill b/completions/tcpkill
index 189d928..87bf51a 100644
--- a/completions/tcpkill
+++ b/completions/tcpkill
@@ -1,22 +1,22 @@
# tcpkill completion -*- shell-script -*-
-_tcpkill()
+_comp_cmd_tcpkill()
{
- 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
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '-i -1 -2 -3 -4 -5 -6 -7 -8 -9' -- "$cur"))
+ _comp_compgen -- -W '-i -1 -2 -3 -4 -5 -6 -7 -8 -9'
fi
} &&
- complete -F _tcpkill tcpkill
+ complete -F _comp_cmd_tcpkill tcpkill
# ex: filetype=sh