summaryrefslogtreecommitdiffstats
path: root/completions/dselect
blob: 554ab215e283392416508a631fc3c39ae640f099 (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
# Debian Linux dselect(8) completion                       -*- shell-script -*-

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

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

    if [[ $cur == -* ]]; then
        _comp_compgen_help
    else
        _comp_compgen -- -W 'access update select install config remove quit'
    fi

} &&
    complete -F _comp_cmd_dselect dselect

# ex: filetype=sh