32 lines
696 B
Bash
32 lines
696 B
Bash
# Debian Linux dselect(8) completion -*- shell-script -*-
|
|
|
|
_dselect()
|
|
{
|
|
local cur prev words cword
|
|
_init_completion || return
|
|
|
|
case $prev in
|
|
--admindir)
|
|
_filedir -d
|
|
return 0
|
|
;;
|
|
-D|-debug)
|
|
_filedir
|
|
return 0
|
|
;;
|
|
esac
|
|
|
|
if [[ "$cur" == -* ]]; then
|
|
COMPREPLY=( $( compgen -W '--admindir --help --version --licence
|
|
--expert --debug' -- "$cur" ) )
|
|
else
|
|
COMPREPLY=( $( compgen -W 'access update select install config remove
|
|
quit' -- "$cur" ) )
|
|
fi
|
|
|
|
return 0
|
|
} &&
|
|
complete -F _dselect dselect
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|