* PATCH: _mencal
@ 2005-01-08 5:03 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2005-01-08 5:03 UTC (permalink / raw)
To: zsh-workers
Index: Completion/Unix/Command/_mencal
===================================================================
RCS file: Completion/Unix/Command/_mencal
diff -N Completion/Unix/Command/_mencal
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_mencal 8 Jan 2005 05:03:12 -0000
@@ -0,0 +1,30 @@
+#compdef mencal
+
+_arguments \
+ '(--monday -m)'{-m,--monday}'[monday as first day of work]' \
+ '-1[current month]' \
+ '-3[previous, current, and next month]' \
+ '-y[all-year calendar]::year:' \
+ '(--quiet -q)'{-q,--quiet}'[no top information]' \
+ '(--nocolor -n)'{-n,--nocolor}'[noncolored output]' \
+ '(--icolor -i)'{-i,--icolor}'[intersection color]:color:(red green blue yellow violet cyan shiny bold)' \
+ '(--help -h)'{-h,--help}'[help]' \
+ '(--version -V)'{-V,--version}'[print version info]' \
+ '(--config -c)*'{-c,--config}'[config]:options:->option' && ret=0
+
+ while [[ -n "$state" ]]; do
+ lstate="$state"
+ state=''
+
+ case "$lstate" in
+ (option)
+ _values -s , 'config option' \
+ '(s start)'{s,start}'[start day]:' \
+ '(l length)'{l,length}'[period length]:' \
+ '(d duration)'{d,duration}'[menstruation duration]:' \
+ '(n name)'{n,name}'[name of subject]:' \
+ '(f file)'{f,file}'[filename]:_files' \
+ '(c color)'{c,color}'[color for menstruation days]:color:(red green blue yellow violet cyan shiny bold)'
+ ;;
+ esac
+ done
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-08 5:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-08 5:03 PATCH: _mencal Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).