-
Notifications
You must be signed in to change notification settings - Fork 43
Add completion for cal and ncal #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # (C) 2025 unrealapex | ||
|
|
||
| # Completion script for cal | ||
|
|
||
| function completion/cal { | ||
|
|
||
| typeset OPTIONS ARGOPT PREFIX | ||
| OPTIONS=( #># | ||
| "l; turn off highlighting of today" | ||
| "J; display Julian Calendar" | ||
| "e; display date of Easter" | ||
| "j; display Julian days" | ||
| "M; display monday as the first day of the week" | ||
| "m; display the specified *month*" | ||
| "o; display the date of Orthodox Easter" | ||
| "p; print the country codes and switching days from Julian to Gregorian Calendar" | ||
| "s; assume the switch from Julian to Gregorian Calendar at the date associated with *country_code*" | ||
| "w; print the number of the week below each week column" | ||
| "y; display a calendar for the specified *year*" | ||
| "3; display the previous, current, and next month" | ||
| "A; display the number of *months* after the current month" | ||
| "B; display the number of *months* before the current month" | ||
| "C; switch to cal mode" | ||
| "N; switch to ncal mode" | ||
| "d; use *yyyy-mm* as the current date (for debugging)" | ||
| "H; use *yyyy-mm-dd* as the current date (for debugging)" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. POSIX defines no options for
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. BSD |
||
| ) #<# | ||
|
|
||
| command -f completion//parseoptions -es | ||
| case $ARGOPT in | ||
| (-) | ||
| command -f completion//completeoptions | ||
| ;; | ||
| esac | ||
|
|
||
| } | ||
|
|
||
|
|
||
| # vim: set ft=sh ts=8 sts=8 sw=8 et: | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # (C) 2025 magicant unrealapex | ||
|
|
||
| # Completion script for the "ncal" command. | ||
|
|
||
| function completion/ncal { | ||
| command -f completion//reexecute cal | ||
| } | ||
|
|
||
|
|
||
| # vim: set ft=sh ts=8 sts=8 sw=8 et: |
Uh oh!
There was an error while loading. Please reload this page.