diff options
Diffstat (limited to 'completions/lua')
-rw-r--r-- | completions/lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/lua b/completions/lua index 3c4df90..a8904e0 100644 --- a/completions/lua +++ b/completions/lua @@ -1,9 +1,9 @@ # lua(1) completion -*- shell-script -*- -_lua() +_comp_cmd_lua() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return case $prev in -e | -l | -v | -) @@ -12,12 +12,12 @@ _lua() esac if [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W "$(_parse_help "$1")" -- "$cur")) + _comp_compgen_help return fi - _filedir 'l@(ua|?(ua)c)' + _comp_compgen_filedir 'l@(ua|?(ua)c)' } && - complete -F _lua lua + complete -F _comp_cmd_lua lua{,5{,.}{0..4}} # ex: filetype=sh |