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
Show HN: HiSHtory: Your shell history in context, synced, and queryable
41–50 of 75 posts
Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable
#42A table comparing these and existing tools would be ideal to show what's unique about this one.
Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable
#43How does this compare to Atuin [0]? [0]: https://atuin.sh/
But otherwise yes, the tools are pretty similar! Nice to see another in the space
*: context, I'm the maintainer so may be biased ;)
Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable
#44Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable
#45Sending your command history automatically over the network is always an huge security risk. This tool atleast have a security section in the readme, but nothing about operational security and how to guard against hacks of one synced agent. I will try it because the history tool looks like an interesting take, but the security model is not ok for multi computer use.
I think my main concern here is the fact that you're putting secrets in your shell history!
Yesterday I was tired and working on a friend serveur. The ssh prompt was different and I entered the password from a account while the remote port has hang up on me. So effectively typing “password” straight on my shell.
His password is in my history now. I removed it but that type of thing happen all the time. ( Not that much in a professional settings, password tends to fade away )
Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable
#46Looks nice! Do all of these shell history replacements completely override native history functionality or just add on to it? (and if I delete something using `hishtory redact` does it delete it from my native shell history too?) Also just a heads up, I find the demo gif to be unintelligibly fast.
It just adds to it, your standard shell history is still there and completely unaffected by this tool. And if you prefer using your native shell's control-r you can also do that. > if I delete something using `hishtory redact` does it delete it from my native shell history too It does not (though if you think it should, please open an issue and I'm happy to add this!) > Also just a heads up, I find the demo gif to be…
Is the history visible and editable by the user ? ( does not have to be overriding a existing command )
Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable
#47I wrote something similar that I use across 2 laptops, so it stores it in AWS. The gist of it is firehose to S3 then use Athena to query. My zsh shell sources a script that has functions that uses the AWS cli to post data or query.
Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable
#48Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable
#49Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable
#50So, this syncs through a hosted server somewhere? Can I host my own? That information should be front and center imo, I didn't see in anywhere in the Readme.
I also did not enjoy that the install script is not in the repo.