summaryrefslogtreecommitdiffstats
path: root/extra/source/bash-completion/contrib/rpm2tgz
blob: 23c70ac9fade5d2586f608edd04df0c2b3b9adae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Slackware rpm2tgz completion.

have rpm2tgz &&
_rpm2tgz()
{
    COMPREPLY=()
    local cur="${COMP_WORDS[COMP_CWORD]}"
    if [[ "$cur" == -* ]]; then
        COMPREPLY=( $( compgen -W '-s -S -n -r -d -c' -- "$cur" ) )
        return 0
    fi

    COMPREPLY=( $(compgen -f -X "!*.rpm" -- "$cur") )
} && complete -F _rpm2tgz -o plusdirs rpm2tgz rpm2txz rpm2targz