summaryrefslogtreecommitdiffstats
path: root/completions/macof
diff options
context:
space:
mode:
Diffstat (limited to 'completions/macof')
-rw-r--r--completions/macof12
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/macof b/completions/macof
index ad29f58..408e446 100644
--- a/completions/macof
+++ b/completions/macof
@@ -1,22 +1,22 @@
# macof completion -*- shell-script -*-
-_macof()
+_comp_cmd_macof()
{
- 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 _macof macof
+ complete -F _comp_cmd_macof macof
# ex: filetype=sh