Live data from Hacker News

Show HN: HiSHtory: Your shell history in context, synced, and queryable

github.com

31–40 of 75 posts

Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable

#31
I didn't see the install.py script in the repo. Would be a good idea to include it.

What was much more interesting to me is how this tool hooks into the shell to record commands. This can be found here: https://github.com/ddworken/hishtory/tree/master/client/lib/...

Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable

#32
post #21

Looks cool. Is it possible to disable sync? For security reasons, I would rather keep everything local

I didn't investigate how to run the backend server (is its address configurable?) but if it can be self hosted it could be run locally. The advantage is that VMs and maybe even containers can send their history to the local server.

If it can't be self hosted, despite end to end encryption it's a big no no for me.

Edit. I read the code

  func getServerHostname() string {
    if server := os.Getenv("HISHTORY_SERVER"); server != "" {
      return server
    }
    return "https://api.hishtory.dev"
  }

Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable

#33

I have been using Atuin for sometime, but I must say, though that looks cool, the fuzzy search results out-of-the-box are useless to me. I used to use something before, probably McFly, that had way better search results. https://github.com/cantino/mcfly https://github.com/ellie/atuin

> atuin

> You may use either the server I host, or host your own! Or just don't use sync at all.

I sincerely appreciate the fact that you provided these as alternatives, because wow, offline only, with no synchronization? That's honestly really nice to see compared to this tool.

Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable

#36
Just tried this, and it appears to cause a very significant lag (~2 sec) after each shell command. Removing the sourcing of the config from bashrc and opening a new shell immediately gets rid of the lag. Maybe it's because I have HISTSIZE set to a large value...

Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable

#37
Sending 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.

Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable

#39
post #21

Looks cool. Is it possible to disable sync? For security reasons, I would rather keep everything local

Same. This tool would've been much better if it didn't reinvent syncing, functioned entirely offline, and just focused on the core problem of contextual shell history. There are plenty of syncing tools that handle security well, and the author could've recommended some that integrate well with this project.

As it is, this is a blocker for me even trying it out. Even if it could eventually be disabled, I don't want it to have network access at all.

Re: Show HN: HiSHtory: Your shell history in context, synced, and queryable

#40
post #37

Sending 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!
Post reply on HN