util-linux/bash-completion/cal
Sami Kerola fe63e9032d bash-completion: cal: add --twelve and --color options
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-07-15 15:51:04 +02:00

28 lines
415 B
Text

_cal_module()
{
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
case $cur in
-*)
OPTS=" --one
--three
--months
--sunday
--monday
--julian
--year
--twelve
--week
--color=auto
--color=always
--color=never
--version
--help"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;
esac
return 0
}
complete -F _cal_module cal