Restore those cool hidden macOS calendars
Years ago I wrote about interesting hidden calendars in macOS.
I hadn’t tested this in a long while, until I happened to think of it the other day. In that time Apple had removed the calendars, and thank God too; they saved everyone a whopping 63k.
I found and tested this one liner off StackOverflow to restore the missing calendars.
curl -s https://pkg.freebsd.org/FreeBSD:13:aarch64/latest/All/calendar-data-2022.11.pkg \ | sudo tar xzf - -C / --exclude '*MANIFEST'
If you followed along with my old post, you’ll need to update the calendar paths to /usr/local/share/calendar/
(instead of /usr/share/calendar/
).
While we’re at it, we might as well fix a bug; some of the calendars have overlapping data, hence output can be duplicated.
bash/zsh
_interesting_calendars() { calendar -A 0 -f /usr/share/calendar/calendar.birthday calendar -A 0 -f /usr/share/calendar/calendar.computer calendar -A 0 -f /usr/share/calendar/calendar.history calendar -A 0 -f /usr/share/calendar/calendar.music calendar -A 0 -f /usr/share/calendar/calendar.lotr } today() { _interesting_calendars|uniq }
fish
function _interesting_calendars calendar -A 0 -f /usr/local/share/calendar/calendar.lotr calendar -A 0 -f /usr/local/share/calendar/calendar.world calendar -A 0 -f /usr/local/share/calendar/calendar.music calendar -A 0 -f /usr/local/share/calendar/calendar.computer end function today _interesting_calendars|uniq end