]>
Commit | Line | Data |
---|---|---|
76dceb10 SK |
1 | _cal_module() |
2 | { | |
d4f9b8d7 | 3 | local cur prev OPTS |
76dceb10 SK |
4 | COMPREPLY=() |
5 | cur="${COMP_WORDS[COMP_CWORD]}" | |
6 | case $cur in | |
7 | -*) | |
fe63e903 SK |
8 | OPTS=" --one |
9 | --three | |
10 | --months | |
11 | --sunday | |
3ccd9664 | 12 | --span |
fe63e903 SK |
13 | --monday |
14 | --julian | |
15 | --year | |
16 | --twelve | |
17 | --week | |
18 | --color=auto | |
19 | --color=always | |
20 | --color=never | |
27fafcf8 | 21 | --vertical |
fe63e903 SK |
22 | --version |
23 | --help" | |
76dceb10 SK |
24 | COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) |
25 | return 0 | |
26 | ;; | |
27 | esac | |
28 | return 0 | |
29 | } | |
30 | complete -F _cal_module cal |