Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- bash-completion/cal | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/bash-completion/cal b/bash-completion/cal index 1510eb1..3b65e8e 100644 --- a/bash-completion/cal +++ b/bash-completion/cal @@ -3,15 +3,22 @@ _cal_module() local cur prev OPTS COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - case $prev in - '-h'|'--help'|'-V'|'--version') - return 0 - ;; - esac case $cur in -*) - OPTS="--one --three --sunday --monday --julian --year --week --version --help" + 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 ;; -- 2.4.5 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html