Hacker News new | ask | show | jobs
by Fileformat 1324 days ago
I do something similar but much, much simpler with a 4-line `precmd` [1] in my .zshrc file. It just records timestamp, directory and command to a file per day. Then you can use standard grep & standard tools to find things.

[1] https://til.marcuse.info/bash/bash-infinite-history.html

2 comments

Same but with bash, and sqlite on the backend, fzy on the frontend: https://github.com/csdvrx/bash-timestamping-sqlite
This is the default on ohmyzsh :)