Skip to content

Conversation

@unrealapex
Copy link
Contributor

No description provided.

Comment on lines 9 to 26
"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)"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

POSIX defines no options for cal.
Can we complete these options only if cal is ncal?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BSD cal does have options. I think we should check what version of cal is being ran and display completion accordingly similar to other completion scripts for commands that have different versions.

Co-authored-by: WATANABE Yuki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants