diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:03:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:03:19 +0000 |
commit | 6c09f2a45c5541e9c207d14fc7aa21a4a0066bde (patch) | |
tree | 0221189d367bf661f6f9493c4f17a03f0dd4b7d2 /completions/makepkg | |
parent | Releasing progress-linux version 1:2.11-8~progress7.99u1. (diff) | |
download | bash-completion-6c09f2a45c5541e9c207d14fc7aa21a4a0066bde.tar.xz bash-completion-6c09f2a45c5541e9c207d14fc7aa21a4a0066bde.zip |
Merging upstream version 1:2.12.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'completions/makepkg')
-rw-r--r-- | completions/makepkg | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/completions/makepkg b/completions/makepkg index 23ac784..f6bdc65 100644 --- a/completions/makepkg +++ b/completions/makepkg @@ -1,29 +1,27 @@ # makepkg completion -*- shell-script -*- # Slackware Linux variant -_makepkg_slackware() +_comp_cmd_makepkg__slackware() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return case "$prev" in -l | --linkadd | -c | --chown) - COMPREPLY=($(compgen -W 'y n' -- "$cur")) + _comp_compgen -- -W 'y n' return ;; esac if [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W \ - '$($1 | command sed -e "s/^options://" | _parse_help -)' \ - -- "$cur")) + _comp_compgen_help - <<<"$("$1" | command sed -e "s/^options://")" return fi - _filedir + _comp_compgen_filedir } -_makepkg_bootstrap() +_comp_cmd_makepkg__bootstrap() { local fname help @@ -32,17 +30,17 @@ _makepkg_bootstrap() help=$("$1" --help 2>&1) case ${help,,} in *slackware*) - fname=_makepkg_slackware + fname=_comp_cmd_makepkg__slackware ;; *) - fname=_minimal + fname=_comp_complete_minimal ;; esac - unset -f _makepkg_bootstrap + unset -f "$FUNCNAME" complete -F $fname makepkg - $fname + $fname "$@" } && - complete -F _makepkg_bootstrap makepkg + complete -F _comp_cmd_makepkg__bootstrap makepkg # ex: filetype=sh |