]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/cal
rev: be careful with close()
[thirdparty/util-linux.git] / bash-completion / cal
CommitLineData
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
21 --version
22 --help"
76dceb10
SK
23 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
24 return 0
25 ;;
26 esac
27 return 0
28}
29complete -F _cal_module cal