summaryrefslogtreecommitdiffstats
path: root/bash-completion/cal
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/cal')
-rw-r--r--bash-completion/cal29
1 files changed, 29 insertions, 0 deletions
diff --git a/bash-completion/cal b/bash-completion/cal
new file mode 100644
index 0000000..e627bdb
--- /dev/null
+++ b/bash-completion/cal
@@ -0,0 +1,29 @@
+_cal_module()
+{
+ local cur prev OPTS
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ case $cur in
+ -*)
+ OPTS=" --one
+ --three
+ --months
+ --sunday
+ --span
+ --monday
+ --julian
+ --year
+ --twelve
+ --week
+ --color=auto
+ --color=always
+ --color=never
+ --version
+ --help"
+ COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
+ return 0
+ ;;
+ esac
+ return 0
+}
+complete -F _cal_module cal