19 lines
445 B
Text
19 lines
445 B
Text
|
# Install this file into directory /etc/bash_completion.d/ on a
|
||
|
# Debian Linux system. For other system read the documentation that
|
||
|
# comes with the bash-completion package.
|
||
|
|
||
|
have dosage &&
|
||
|
_dosage() {
|
||
|
local cur prev
|
||
|
|
||
|
COMPREPLY=()
|
||
|
cur=${COMP_WORDS[COMP_CWORD]}
|
||
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||
|
|
||
|
if type _optcomplete &> /dev/null; then
|
||
|
_optcomplete "$@"
|
||
|
fi
|
||
|
return 0
|
||
|
}
|
||
|
[ "$have" ] && complete -F _dosage dosage
|