summaryrefslogtreecommitdiffstats
path: root/completions/medusa
diff options
context:
space:
mode:
Diffstat (limited to 'completions/medusa')
-rw-r--r--completions/medusa18
1 files changed, 9 insertions, 9 deletions
diff --git a/completions/medusa b/completions/medusa
index 4512987..347879a 100644
--- a/completions/medusa
+++ b/completions/medusa
@@ -1,30 +1,30 @@
# bash completion for medusa -*- shell-script -*-
-_medusa()
+_comp_cmd_medusa()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
case $prev in
-*h)
- _known_hosts_real -- "$cur"
+ _comp_compgen_known_hosts -- "$cur"
return
;;
-*[HUPCO])
- _filedir
+ _comp_compgen_filedir
return
;;
-*M)
- COMPREPLY=($(compgen -W "$($1 -d | awk '/^ +\+/ {print $2}' |
- command sed -e 's/\.mod$//')"))
+ _comp_compgen_split -- "$("$1" -d | _comp_awk '/^ +\+/ {print $2}' |
+ command sed -e 's/\.mod$//')"
return
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ _comp_compgen_help
fi
} &&
- complete -F _medusa medusa
+ complete -F _comp_cmd_medusa medusa
# ex: filetype=sh