diff options
Diffstat (limited to 'completions/makepkg')
-rw-r--r-- | completions/makepkg | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/makepkg b/completions/makepkg index 71d4f76d..23ac7848 100644 --- a/completions/makepkg +++ b/completions/makepkg @@ -7,16 +7,16 @@ _makepkg_slackware() _init_completion || return case "$prev" in - -l|--linkadd|-c|--chown) - COMPREPLY=( $(compgen -W 'y n' -- "$cur") ) + -l | --linkadd | -c | --chown) + COMPREPLY=($(compgen -W 'y n' -- "$cur")) return ;; esac - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W \ + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W \ '$($1 | command sed -e "s/^options://" | _parse_help -)' \ - -- "$cur") ) + -- "$cur")) return fi @@ -43,6 +43,6 @@ _makepkg_bootstrap() complete -F $fname makepkg $fname } && -complete -F _makepkg_bootstrap makepkg + complete -F _makepkg_bootstrap makepkg # ex: filetype=sh |