Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'View upcoming events on multiple Unix calendars' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View upcoming events on multiple Unix calendars
Authored by: ZZamboni on May 15, '06 09:37:01AM
calendar pre-processes its calendar file with cpp, which allows inclusion using C-style directives. Furthermore, it looks by default for ~/.calendar/calendar. So you can simply put this in ~/.calendar/calendar:
#include "calendar.computer"
#include "calendar.usholiday"
#include "calendar.birthday"
#include "calendar.christian"
#include "calendar.freebsd"
#include "calendar.history"
#include "calendar.music"
#include "calendar.personal"

calendar by default looks in /usr/share/calendar and ~/.calendar for files to include, so there is no need to include the full paths (you should create "calendar.personal" in ~/.calendar, even if it's empty, for the above to work).

The only thing missing is the ability to specify different search periods for different calendars...

[ Reply to This | # ]