Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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 :)




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

Search: