Atuin: ✨ Magical shell history

submitted by Fryboyter edited

github.com/atuinsh/atuin

Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands. Additionally, it provides optional and fully encrypted synchronisation of your history between machines, via an Atuin server.

Log in to comment

14 Comments

slampisko

I love the name haha

I'm a sucker for clever Pratchett references

Executive Chimp

GNU pterry

n0xew

Looks helpful, I'll have to give it a try. Thanks!

MrPoopyButthole

Having automatic updates as opt-in by default would be better to avoid supply chain attacks. Also, if the original history file is still there it would be a good feature to be able to diff between the sqlite and the history file to see if commands have been deleted. Are there options to choose what encryption algo is used?

Fryboyter [OP]

Having automatic updates as opt-in by default would be better to avoid supply chain attacks.

I guess the majority of users would prefer automatic data synchronization. The tool therefore offers the option of deactivating automatic synchronization (https://docs.atuin.sh/configuration/config/).

Also, if the original history file is still there it would be a good feature to be able to diff between the sqlite and the history file to see if commands have been deleted.

A solution can probably be created with https://docs.atuin.sh/reference/list/ in conjunction with a shell script.

Are there options to choose what encryption algo is used?

I suspect that this is not possible. Why do you want to change the type of encryption?

Yuumi

If this option wasn't on by default, I wouldn't even know about it lol

1984

This probably works better than syncthing for mirroring shell history.

vort3

Can it integrate fzf or does it have fuzzy search?

Fryboyter [OP]

Based on https://docs.atuin.sh/configuration/config/#search_mode, "fuzzy search" is used as standard.

stepanzak

The searching TUI is so similar to fzf that I think it might even be fzf. If it's not, it's just very similar.

acockworkorange

TUI... Text user interface?

☆ Yσɠƚԋσʂ ☆

I just got this set up with fish locally, and it really is nice. Works completely seamlessly, and makes it very easy to comb through history.

delirious_owl

Smells like fish

flashgnash

Tried atuin for a while, didn't like that it took over my up arrow and slowed me down quickly editing previous commands