]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/cal
Merge branch 'master' of https://github.com/biubiuzy/util-linux
[thirdparty/util-linux.git] / bash-completion / cal
1 _cal_module()
2 {
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 case $cur in
7 -*)
8 OPTS=" --one
9 --three
10 --months
11 --sunday
12 --span
13 --monday
14 --julian
15 --year
16 --twelve
17 --week
18 --color=auto
19 --color=always
20 --color=never
21 --vertical
22 --version
23 --help"
24 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
25 return 0
26 ;;
27 esac
28 return 0
29 }
30 complete -F _cal_module cal