diff options
Diffstat (limited to 'completions/dnsspoof')
-rw-r--r-- | completions/dnsspoof | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/dnsspoof b/completions/dnsspoof index 86ade91..9117b72 100644 --- a/completions/dnsspoof +++ b/completions/dnsspoof @@ -1,26 +1,26 @@ # dnsspoof completion -*- shell-script -*- -_dnsspoof() +_comp_cmd_dnsspoof() { - 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 ;; -f) - _filedir + _comp_compgen_filedir return ;; esac if [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur")) + _comp_compgen_usage fi } && - complete -F _dnsspoof dnsspoof + complete -F _comp_cmd_dnsspoof dnsspoof # ex: filetype=sh |