blob: 6ad388428cd7c9e09af84372f2283918807c3bcd (
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
|