I like the ‘calendar’ command. I think it was originally the ‘today-in-history’ tool, back from the days of Unix. Typing the word ‘calendar’ on the command line will bring up a list of events that happened on today’s date. I wanted to add events and dates that are important to me so I found ‘calendar’ in /usr/share/calendar and added ‘calendar.mine’ to the list; then I added some events to it . It didn’t work, even though the comments at the top say it’s the master file for ‘calendar’.
So I checked the ‘calendar.all’ file and found that it had lines to #include all of the calendar.whatevers in the /usr/share/calendar directory. Of course I added #include <calendar.mine> and of course it didn’t work, even after using the source command.
In calendar.all it says that you can modify the calendar if you copy it into /etc/calendar/calendar and make changes there. But of course I did it a little differently because I’m weird.
I put it in my home directory by typing mkdir -p ~/.calendar. The -p tells the shell to create the directory if it doesn’t exist and not to complain about it if it does. Then I typed nano ~/.calendar/calendar to create an editable file in its parent directory, to which I added the dates and events I wanted in there. The syntax for calendar entries looks like this:
01/01 Some event
The first characters are the month/day; then a tab (it has to be a tab); then the event. And it worked, so I was happy with it. It’s a small, easy thing but I think it’s cool.
Thanks for reading this, have a good day!