diff options
Diffstat (limited to 'completions/lrzip')
-rw-r--r-- | completions/lrzip | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/lrzip b/completions/lrzip index 5eb2445b..eb2904c6 100644 --- a/completions/lrzip +++ b/completions/lrzip @@ -23,21 +23,21 @@ _lrzip() return ;; -*L) - COMPREPLY=( $(compgen -W '{1..9}' -- "$cur") ) + COMPREPLY=($(compgen -W '{1..9}' -- "$cur")) return ;; -*N) - COMPREPLY=( $(compgen -W '{-20..19}' -- "$cur") ) + COMPREPLY=($(compgen -W '{-20..19}' -- "$cur")) return ;; -*p) - COMPREPLY=( $(compgen -W "{1..$(_ncpus)}" -- "$cur") ) + COMPREPLY=($(compgen -W "{1..$(_ncpus)}" -- "$cur")) return ;; esac - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) return fi @@ -45,8 +45,8 @@ _lrzip() local IFS=$'\n' compopt -o filenames - COMPREPLY=( $(compgen -f -X "$xspec" -- "$cur") $(compgen -d -- "$cur") ) + COMPREPLY=($(compgen -f -X "$xspec" -- "$cur") $(compgen -d -- "$cur")) } && -complete -F _lrzip lrzip + complete -F _lrzip lrzip # ex: filetype=sh |