diff options
author | Clint Adams <clint@users.sourceforge.net> | 2005-01-08 05:06:07 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2005-01-08 05:06:07 +0000 |
commit | 0470a378b6a36453443015a09a2ddb88d7113c3f (patch) | |
tree | 4561e4fcdaf8ed9d93ae9bd5b21c06d592963968 /Completion/Unix/Command/_mencal | |
parent | 923be82207ad37780ceb8869e105b07162a038e6 (diff) | |
download | zsh-0470a378b6a36453443015a09a2ddb88d7113c3f.tar.gz zsh-0470a378b6a36453443015a09a2ddb88d7113c3f.tar.xz zsh-0470a378b6a36453443015a09a2ddb88d7113c3f.zip |
* 20650: completion for mencal.
Diffstat (limited to 'Completion/Unix/Command/_mencal')
-rw-r--r-- | Completion/Unix/Command/_mencal | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_mencal b/Completion/Unix/Command/_mencal new file mode 100644 index 000000000..ef4e88380 --- /dev/null +++ b/Completion/Unix/Command/_mencal @@ -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 |