summaryrefslogtreecommitdiffstats
path: root/completions/dselect
blob: 4c1802671a26771305b3aa02f45fb525f5b05b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Debian Linux dselect(8) completion                       -*- shell-script -*-

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

    case $prev in
        --admindir)
            _filedir -d
            return
            ;;
        -D | -debug)
            _filedir
            return
            ;;
    esac

    if [[ $cur == -* ]]; then
        COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
    else
        COMPREPLY=($(compgen -W 'access update select install config remove
            quit' -- "$cur"))
    fi

} &&
    complete -F _dselect dselect

# ex: filetype=sh