42 lines
818 B
Plaintext
Raw Normal View History

# Debian Linux dselect(8) completion.
have dselect || return
_dselect()
{
2009-10-04 19:42:50 +02:00
local cur prev
COMPREPLY=()
_get_comp_words_by_ref cur prev
2009-10-04 19:42:50 +02:00
case $prev in
2009-10-04 19:42:50 +02:00
--admindir)
_filedir -d
return 0
;;
-D|-debug)
2009-10-04 19:42:50 +02:00
_filedir
return 0
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--admindir --help --version --licence \
--license --expert --debug' -- "$cur" ) )
else
COMPREPLY=( $( compgen -W 'access update select install config \
remove quit' -- "$cur" ) )
fi
return 0
} &&
complete -F _dselect dselect
# Local variables:
# mode: shell-script
2009-10-04 19:42:50 +02:00
# sh-basic-offset: 4
# sh-indent-comment: t
2009-10-04 19:42:50 +02:00
# indent-tabs-mode: nil
# End:
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh