summaryrefslogtreecommitdiffstats
path: root/completions/filesnarf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/filesnarf12
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/filesnarf b/completions/filesnarf
index f959d80..d4c1cb0 100644
--- a/completions/filesnarf
+++ b/completions/filesnarf
@@ -1,22 +1,22 @@
# filesnarf etc completion -*- shell-script -*-
-_snarf()
+_comp_cmd_snarf()
{
- 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 '$(_parse_usage "$1")' -- "$cur"))
+ _comp_compgen_usage
fi
} &&
- complete -F _snarf filesnarf mailsnarf msgsnarf
+ complete -F _comp_cmd_snarf filesnarf mailsnarf msgsnarf
# ex: filetype=sh