Live data from Hacker News

Atuin – Magical Shell History

atuin.sh

41–50 of 72 posts

Re: Atuin – Magical Shell History

#42
post #20

I see it also supports fish. That's been my shell for many years, it just works really well and, as far as I can tell (couldn't find a demo on their website), it doesn't add much to fish beyond syncing? Has anyone used fish + autuin? What are your thoughts? I'm curious to know if it is worth the extra tool, maybe I should just try it :)

The main thing would be opt-in syncing, and I think we might store a little more context than fish does in their SQLite!

Otherwise consistency is nice if you use a few setups

Re: Atuin – Magical Shell History

#43
post #41

If I explicitly DON’T want sync between machines (my workflows are very machine specific), does atuin give me anything significant over my current fzf based C-r?

Ability to change the search mode (prefix, full text, fuzzy), and filter by path/host, time range, exit code, current session only, and more

Re: Atuin – Magical Shell History

#44
I have been storing shell history in SQLite since 2017 [1]. I have always been a heavy shell user, with the worst memory. So having all the history stored and backed up was very useful for me. At the time when I became a full-time macOS user, I built a ShellHistory app for macOS [2], with full-text search, notebooks, and sync over iCloud (with advanced data protection [3]).

I tried to contact Atuin authors to see if I could also integrate ShellHistory with their servers, but at that time it seemed like they did not support third-party clients, and the API was not documented.

I highly recommend using tools like Atuin and ShellHistory, at this point I have 136,000 records since 2017. My shell history is the best documentation for me. If I need to do a `kubectl --raw` API call, and don't remember exactly how to write it, I just search for `kubectl raw` and get some results from the history, don't remember some advanced `git rebase`, just search the history for it.

—-

- [1] https://www.outcoldman.com/en/archive/2017/07/19/dbhist/

- [2] https://loshadki.app/shellhistory/

- [3] https://support.apple.com/en-us/108756

Edit: fixed formatting

Re: Atuin – Magical Shell History

#45
post #41

If I explicitly DON’T want sync between machines (my workflows are very machine specific), does atuin give me anything significant over my current fzf based C-r?

Atuin stores much more context than ctrl-r does - exit codes, command duration and directory, etc

Also has functions for filtering command search by directory

Being backed by SQLite tends to mean your history is more durable + is properly saved across shells too

Re: Atuin – Magical Shell History

#47
post #35
post #19

Earlier quoted context omitted.

(dev here!) thank you so much! I love to hear things like this <3

now please give us the cloud history feature opt-out by default please please. cheers

did you even try to read the web page documentation? or the previous answer to that same question you asked? it doesn't send anything by default...

Re: Atuin – Magical Shell History

#48
post #41

If I explicitly DON’T want sync between machines (my workflows are very machine specific), does atuin give me anything significant over my current fzf based C-r?

> does atuin give me anything significant over my current fzf based C-r

I'm interested in this as well. I currently use fzf and I'm happy with what I've got (except for me syncing would probably be a nice feature to have).

Also: I gave atuin a quick try and found the TUI to be worse than fzf. Why do I need a fullscreen ctrl-r interface? I found that distracting. But maybe that is configurable. I didn't look much further.

Re: Atuin – Magical Shell History

#49
post #41

If I explicitly DON’T want sync between machines (my workflows are very machine specific), does atuin give me anything significant over my current fzf based C-r?

> does atuin give me anything significant over my current fzf based C-r I'm interested in this as well. I currently use fzf and I'm happy with what I've got (except for me syncing would probably be a nice feature to have). Also: I gave atuin a quick try and found the TUI to be worse than fzf. Why do I need a fullscreen ctrl-r interface? I found that distracting. But maybe that is configurable. I didn't look much furt…

It is configurable!

And also the default is now to use 40 lines, not the alt screen (has its own drawbacks)

You can set “inline_height”

https://docs.atuin.sh/guide/basic-usage/#inline-window

Post reply on HN