Hacker News new | past | comments | ask | show | jobs | submit login

It’s a fish function but would be easy enough to translate to bash. It opens my diary, with an optional day offset. It creates the entries with a nice file structure so it’s easy to browse without the command too. I have years of memories captured that I otherwise wouldn’t have bothered with thanks to this script.

`diary` opens the entry for today

`diary -1` opens the entry for yesterday

`diary -365` opens the entry for a year ago

https://gist.github.com/bspammer/12d6b4a8049c69c832df7c4fd1d...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: