Live data from Hacker News

Atuin – Magical shell history

atuin.sh

71–80 of 118 posts

Re: Atuin – Magical shell history

#71
post #67

The page claims this is "trusted by engineers" at Google, MS, Apple, Amazon, you name it. Could maybe some engineer at these companies enlighten me how you could convince your security team that it is fine that all your shell commands are streamed to an outside server? Yes, I know it's E2E, but still, without a proper audit, my security department here would laugh me out of the room if I'd ask for this. Do you all se…

I don't think Google allows it and AFAIK, Google has its own tool to sync all bash histories.

Re: Atuin – Magical shell history

#72
post #70

Earlier quoted context omitted.

The server is optional and opt-in, stuff is saved to a local SQLite database by default.

In "What you get with Atuin" the first(!) point is "Sync your shell history to all of your machines, wherever they are". That obviously cannot work with a local SQLite. Without syncing, this is a better ctrl+r, which I won't disagree is nice, but not the real point of this software. If the page says this is "trusted" by pretty much all major software companies, I would assume this includes syncing, which is the main…

Many large companies suffer from the concept of shadow IT. The use of software and services that aren’t blessed by the company to accomplish tasks that are blessed. As someone in security at a large company, I expect this is a matter of not every company has people who follows rules. I know I’ve seen and know, even within security orgs, plenty of people who don’t follow the rules because a few bad rules makes them feel that other important rules are also bad. It’s pretty simple to bypass the software companies use to “enforce” the rules

Re: Atuin – Magical shell history

#73
post #70

Earlier quoted context omitted.

The server is optional and opt-in, stuff is saved to a local SQLite database by default.

In "What you get with Atuin" the first(!) point is "Sync your shell history to all of your machines, wherever they are". That obviously cannot work with a local SQLite. Without syncing, this is a better ctrl+r, which I won't disagree is nice, but not the real point of this software. If the page says this is "trusted" by pretty much all major software companies, I would assume this includes syncing, which is the main…

> Without syncing, this is a better ctrl+r, which I won't disagree is nice, but not the real point of this software.

Why not? I use it without syncing just for the search functionality which is really useful to me and saves me quite a bit of time. I'm sure the syncing is useful but I don't care about my shell commands enough to want them synced across all the machines I use.

Re: Atuin – Magical shell history

#74

I've been using this for a couple months after using McFly in zsh for over a year. I think I can say that I like it better, but the only thing I sometimes don't like is how it completely takes over your screen when you press the up arrow. I usually just want to get the previous command I entered instead of the whole searchable history (which I use Control-R to bring up), and it's really jarring to have the entire scr…

This is why I have

   atuin init fish --disable-up-arrow | source
in my fish.config. C-r with Atuin is great. It taking up the whole screen when I want to run the previous command again? Not grat.

Re: Atuin – Magical shell history

#75

Earlier quoted context omitted.

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.

I have a one-liner zsh function that does the same thing, been using it for years, too powerful for me to switch it, and probably has better search capabilities, thanks to fzf. function hist() { print -z $( ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf | sed -E 's/ *[0-9]*\*? *//' | sed -E 's/\\/\\\\/g') }

Now use your function to give you a list of all find commands that took over 10 seconds to run.

Atuin stores _everything_ it can about each command run, what you see when you press C-r is only a tiny subset. And even it gives you the duration and success/failure information immediately.

If you want to, try pressing C-r, select a command from history and press C-o. Normal shell history doesn't store any of that.

Re: Atuin – Magical shell history

#76
post #73
post #70

Earlier quoted context omitted.

In "What you get with Atuin" the first(!) point is "Sync your shell history to all of your machines, wherever they are". That obviously cannot work with a local SQLite. Without syncing, this is a better ctrl+r, which I won't disagree is nice, but not the real point of this software. If the page says this is "trusted" by pretty much all major software companies, I would assume this includes syncing, which is the main…

> Without syncing, this is a better ctrl+r, which I won't disagree is nice, but not the real point of this software. Why not? I use it without syncing just for the search functionality which is really useful to me and saves me quite a bit of time. I'm sure the syncing is useful but I don't care about my shell commands enough to want them synced across all the machines I use.

I can only repeat myself: the syncing is advertised as the main feature, it's the USP. There are plenty of other tools that improve ctrl+r.

Re: Atuin – Magical shell history

#77
post #41

Looks neat and I'd like to try it. I wonder how well it would work from within a GNU Emacs shell buffer (comint based, I think) running bash. Has anyone given this a shot?

Bash in general is problematic for Atuin, since it plugs into the prompt and Bash prompt is a bit crap =)

But it should still work

Re: Atuin – Magical shell history

#78
post #52

Been using atuin for a couple months now on Windows in bash. Its a very nice tool however I've been experiencing a huge lag sometimes after typing just one character. Intuition says there could be the database performance is lacking or Im missing some configuration. Anyone else experiencing something similar?

Yup, I'm getting this sometimes on Linux.

There's been a recent update (not sure which version, I don't have my Linux box on hand to check) where it now started logging some timeout waiting for a lock on the database.

I don't type commands in multiple shells at the same time, so not sure what's locking the db. I also don't use remote sync (explicitly disabled in the config).

Re: Atuin – Magical shell history

#79
post #65
post #60

Can it do the magic of deduplication, cleaning failed commands with typos so your history isn't cluttered, and use frecency for autocompletions?

Deduplication as an option or shortcut would be nice. But I think Atuin should and maybe must save all commands in the database.

Why should it store garbage in the database?

Re: Atuin – Magical shell history

#80
post #76
post #73

Earlier quoted context omitted.

> Without syncing, this is a better ctrl+r, which I won't disagree is nice, but not the real point of this software. Why not? I use it without syncing just for the search functionality which is really useful to me and saves me quite a bit of time. I'm sure the syncing is useful but I don't care about my shell commands enough to want them synced across all the machines I use.

I can only repeat myself: the syncing is advertised as the main feature, it's the USP. There are plenty of other tools that improve ctrl+r.

Note that not syncing is also an advertised use case.

> If you would like to sync your shell history, registration is required. Otherwise, you can use Atuin locally as a fully-offline enhanced history search tool

Post reply on HN