Live data from Hacker News

Atuin – Magical shell history

atuin.sh

11–20 of 118 posts

Re: Atuin – Magical shell history

#13
I love how it looks and I love some of the fancy features.

But above all, it's a solution to two real problems I had.

I work in several terminals. Sometimes tabs or Windows in my emulator, sometimes screen or tmux. And all those sessions would overwrite eachothers history. I lost many actual important history entries that way. And I (almost) ran many wrong commands, expecting another one to be my last entry. Arrow-up enter. Woops.

Atuin solved this.

I had my history as large as possible. Ctrl-r is my friend to search for "that old thing I did to pgsql piping something from zcat a year ago". But it's ever slower, zsh and bash history clearly not designed to handle (tens of) thousands of entries.

Atuin solved this.

Re: Atuin – Magical shell history

#14

Why is this better than a shell's built-in history, possibly paired with fzf? I'm not asking sarcastically, either. Is this something awesome I should be using? What about it is going to blow my mind?

The features listed on the site already tell you what it has that regular shell history + fzf doesn't have. You can decide if that makes it better.

All that jumps out to me from that page is sync, which is nice, but not life-changing.

I guess I’m looking for more of a personal experience anecdote, where someone could explain how its other features made it worth signing up for another sync service and learning a new thing. It may be the best thing since sliced bread but that page doesn’t say why I should try it.

Re: Atuin – Magical shell history

#17

Earlier quoted context omitted.

The features listed on the site already tell you what it has that regular shell history + fzf doesn't have. You can decide if that makes it better.

All that jumps out to me from that page is sync, which is nice, but not life-changing. I guess I’m looking for more of a personal experience anecdote, where someone could explain how its other features made it worth signing up for another sync service and learning a new thing. It may be the best thing since sliced bread but that page doesn’t say why I should try it.

- all the data is stored in a sqlite db, so it's actually structured, as opposed to just being in an adhoc text format

- this matters because it's capturing not just what commands were run, but metadata about the commands as well. Of particular interest to me is that ot captures the start and end time for every history entry so you can get timing data even if you forget to use `time`

- it provides much more fine-grained control over what makes it into the database than shells provide for controlling what makes it into their built-in history. For example, it has built-in support for filtering out common kinds of secrets/tokens/etc.

It's also in active development with a friendly and helpful creator/project lead, an active community, and an ever growing feature set.

I'd recommend giving it a try; as far as I'm concerned, it's best-in-class for managing shell history

Re: Atuin – Magical shell history

#18

Earlier quoted context omitted.

The features listed on the site already tell you what it has that regular shell history + fzf doesn't have. You can decide if that makes it better.

All that jumps out to me from that page is sync, which is nice, but not life-changing. I guess I’m looking for more of a personal experience anecdote, where someone could explain how its other features made it worth signing up for another sync service and learning a new thing. It may be the best thing since sliced bread but that page doesn’t say why I should try it.

I just watched this video: https://youtu.be/WB7qojkkVVU?si=_sqnKlXrblLSwrs8 and there still seems to be nothing that stands out about atuin. I do think it might be easier to work with the data in a database. Personally I don't see a reason to use this service .

Re: Atuin – Magical shell history

#19

Why is this better than a shell's built-in history, possibly paired with fzf? I'm not asking sarcastically, either. Is this something awesome I should be using? What about it is going to blow my mind?

You could probably make shell history + fzf do a lot of what atuin does, but you'd have to write a bunch of glue code to make it happen. That's what atuin is doing. I particularly like the high configurability as well as the ability to switch between host, global, session, and directory history.

Re: Atuin – Magical shell history

#20

I mostly really like atuin, but it has been causing some random other breakage in my shell that has me on the verge of replacing it with something simpler. A quick search comes up with https://github.com/atuinsh/atuin/issues/1696 , which indicates I'm not alone.

That bug report is 12 days old...
Post reply on HN