Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Fileformat
on Nov 2, 2022
|
parent
|
context
|
favorite
| on:
Show HN: HiSHtory: Your shell history in context, ...
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
csdvrx
on Nov 2, 2022
|
next
[–]
Same but with bash, and sqlite on the backend, fzy on the frontend:
https://github.com/csdvrx/bash-timestamping-sqlite
angrais
on Nov 2, 2022
|
prev
[–]
This is the default on ohmyzsh :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://til.marcuse.info/bash/bash-infinite-history.html