diff options
author | Sami Kerola | 2015-07-03 20:03:08 +0200 |
---|---|---|
committer | Karel Zak | 2015-07-15 15:51:04 +0200 |
commit | fe63e9032dd2984b6e8365ab6097541f5ffdc071 (patch) | |
tree | 3d7dbe8c65095ddb9fa2856b75305c1899b7f135 /bash-completion | |
parent | ldattach: tiny coding style changes (diff) | |
download | kernel-qcow2-util-linux-fe63e9032dd2984b6e8365ab6097541f5ffdc071.tar.gz kernel-qcow2-util-linux-fe63e9032dd2984b6e8365ab6097541f5ffdc071.tar.xz kernel-qcow2-util-linux-fe63e9032dd2984b6e8365ab6097541f5ffdc071.zip |
bash-completion: cal: add --twelve and --color options
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion')
-rw-r--r-- | bash-completion/cal | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/bash-completion/cal b/bash-completion/cal index 1510eb1fa..3b65e8e43 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 ;; |