diff options
Diffstat (limited to 'completions/unrar')
-rw-r--r-- | completions/unrar | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/completions/unrar b/completions/unrar index 4cbac8f..f3d4549 100644 --- a/completions/unrar +++ b/completions/unrar @@ -1,23 +1,23 @@ # unrar(1) completion -*- shell-script -*- -_unrar() +_comp_cmd_unrar() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return if [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W '-ad -ap -av- -c- -cfg- -cl -cu -dh -ep -f - -idp -ierr -inul -kb -o+ -o- -ow -p -p- -r -ta -tb -tn -to -u -v - -ver -vp -x -x@ -y' -- "$cur")) + _comp_compgen -- -W '-ad -ap -av- -c- -cfg- -cl -cu -dh -ep -f -idp + -ierr -inul -kb -o+ -o- -ow -p -p- -r -ta -tb -tn -to -u -v -ver + -vp -x -x@ -y' else if ((cword == 1)); then - COMPREPLY=($(compgen -W 'e l lb lt p t v vb vt x' -- "$cur")) + _comp_compgen -- -W 'e l lb lt p t v vb vt x' else - _filedir '@(rar|exe)' + _comp_compgen_filedir '@(rar|exe|cbr)' fi fi } && - complete -F _unrar unrar + complete -F _comp_cmd_unrar unrar # ex: filetype=sh |