summaryrefslogtreecommitdiffstats
path: root/completions/rpm2tgz
blob: 5ddcfd593888fe3cb31a07ac975ecaa403a171b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Slackware rpm2tgz completion                             -*- shell-script -*-

_rpm2tgz()
{
    local cur prev words cword
    _init_completion || return

    if [[ $cur == -* ]]; then
        COMPREPLY=($(compgen -W '-s -S -n -r -d -c' -- "$cur"))
        return
    fi

    _filedir "rpm"
} &&
    complete -F _rpm2tgz rpm2tgz rpm2txz rpm2targz

# ex: filetype=sh