summaryrefslogtreecommitdiffstats
path: root/bash-completion/cal
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/cal')
-rw-r--r--bash-completion/cal15
1 files changed, 15 insertions, 0 deletions
diff --git a/bash-completion/cal b/bash-completion/cal
new file mode 100644
index 000000000..d50c8bbca
--- /dev/null
+++ b/bash-completion/cal
@@ -0,0 +1,15 @@
+_cal_module()
+{
+ local cur OPTS
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ case $cur in
+ -*)
+ OPTS="-1 --one -3 --three -s --sunday -m --monday -j --julian -y --year -V --version -h --help"
+ COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
+ return 0
+ ;;
+ esac
+ return 0
+}
+complete -F _cal_module cal