summaryrefslogtreecommitdiffstats
path: root/completions/luac
diff options
context:
space:
mode:
Diffstat (limited to 'completions/luac')
-rw-r--r--completions/luac14
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/luac b/completions/luac
index c763deb..3fef4be 100644
--- a/completions/luac
+++ b/completions/luac
@@ -1,27 +1,27 @@
# luac(1) completion -*- shell-script -*-
-_luac()
+_comp_cmd_luac()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
case $prev in
-v | -)
return
;;
-o)
- _filedir
+ _comp_compgen_filedir
return
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W "$(_parse_help "$1")" -- "$cur"))
+ _comp_compgen_help
return
fi
- _filedir lua
+ _comp_compgen_filedir lua
} &&
- complete -F _luac luac
+ complete -F _comp_cmd_luac luac{,5{,.}{0..4}}
# ex: filetype=sh