Y
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
csdvrx
1324 days ago
Same but with bash, and sqlite on the backend, fzy on the frontend:
https://github.com/csdvrx/bash-timestamping-sqlite
link
angrais
1324 days ago
This is the default on ohmyzsh :)
link