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

_comp_cmd_rpm2tgz()
{
    local cur prev words cword comp_args
    _comp_initialize -- "$@" || return

    if [[ $cur == -* ]]; then
        _comp_compgen -- -W '-s -S -n -r -d -c'
        return
    fi

    _comp_compgen_filedir "rpm"
} &&
    complete -F _comp_cmd_rpm2tgz rpm2tgz rpm2txz rpm2targz

# ex: filetype=sh