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

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

    if [[ "$cur" == -* ]]; then
        COMPREPLY=( $( compgen -W '--dry-run --install-new --reinstall \
            --verbose' -- "$cur") )
        return 0
    fi

    _filedir "t[bglx]z"
} && complete -F _upgradepkg upgradepkg

# ex: ts=4 sw=4 et filetype=sh