Live data from Hacker News

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

github.com

71–75 of 75 posts

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

#71

Earlier quoted context omitted.

Mistake happen. 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 )

Pro-tip: if you wanna hide stuff from your shell history, enter a space/blank before the actual command. Not that it probably would have helped in this situation, but maybe useful for others. Usually if I have to enter secrets in my shell, I do something like this in order to save the useful stuff to history but hiding the secrets: - ` export PASSWORD=hunter2` (notice the space before "export") - `service-cli login u…

Other options:

- read -s PASSWORD

- service-cli login username $(cat)

At least you probably don't want to use `export` when setting the variable.

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

#72
I use syncthing instead. But if I switch computers quickly there are conflicts which I resolve like this:

    function sync_history
        cat ~/.local/share/fish/fish_history.sync-conflict-* >>~/.local/share/fish/fish_history
        rm ~/.local/share/fish/fish_history.sync-conflict-*
    end

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

#73
post #69
post #43

Earlier quoted context omitted.

Atuin* also allows for opt-in sync, easily hosting your own server, and switching search context for your shell history (ie whether you want to search the current directory, session, host, or all history on all hosts). We also have a bunch of different search modes that query history differently (fuzzy, prefix, etc) But otherwise yes, the tools are pretty similar! Nice to see another in the space *: context, I'm the…

I know it's a challenge, but, please, add deletion! Thanks!

First part of deletion went out in v12, we should wrap up the rest in v13!

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

#75
post #73
post #69

Earlier quoted context omitted.

I know it's a challenge, but, please, add deletion! Thanks!

First part of deletion went out in v12, we should wrap up the rest in v13!

Homebrew just released v12 today! Yay!
Post reply on HN