this post was submitted on 03 Mar 2024
239 points (98.4% liked)

Linux

48329 readers
1418 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

top 19 comments
sorted by: hot top controversial new old
[–] slampisko@lemmy.world 29 points 8 months ago

I love the name haha

I'm a sucker for clever Pratchett references

[–] executivechimp@discuss.tchncs.de 18 points 8 months ago
[–] n0xew@lemmy.world 7 points 8 months ago

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

[–] flashgnash@lemm.ee 6 points 8 months ago (1 children)

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

[–] sailingbythelee@lemmy.world 6 points 8 months ago (2 children)

I'm giving atuin a try right now and the first thing I noticed is what you just said about the up arrow. I don't need to invoke the full atuin command history screen when I just want to quickly edit the last command. In its default state, the up arrow does the same thing as ctrl-r so it isn't particularly useful, in my opinion. The developer suggests making it more useful by setting the up arrow to invoke a "local" command search, meaning a search of commands that were used in the current directory. Alternatively, you can disable the remapping of the up arrow key and just invoke atuin using ctrl-r. I think that's what I will try next.

[–] flashgnash@lemm.ee 2 points 8 months ago

I might give this a go, I just ended up getting rid of it completely out of frustration when I was trying to work

[–] deliriousn0mad@feddit.it 1 points 8 months ago* (last edited 8 months ago) (1 children)

I had the same annoyance and ended up uninstalling it, I'll look into remapping the up arrow too, I never liked the way ctrl-r works anyway. By the way, do you know how to delete a command from history in atuin? I found a bunch of discussions in development about this and some comments saying the function was added, but never mentioning the shortcut or command to delete

[–] sailingbythelee@lemmy.world 3 points 8 months ago

Yes, you can delete commands from the history. They added a TUI command inspector, which gives you more information on commands (date/time of last run, a time series of command runs, exit codes, etc.). You can delete history entries from this inspector.

In terms of disabling the up arrow remap, it's just a flag in the configuration file (detailed for each distro in the installation instructions).

I haven't used atuin a lot yet, but I sure like having a fast, full screen command history with fuzzy search.

[–] MrPoopyButthole@lemmy.world 6 points 8 months ago (1 children)

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@discuss.tchncs.de 10 points 8 months ago (1 children)

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?

[–] Ozy@lemmy.world 3 points 8 months ago

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

[–] 1984@lemmy.today 5 points 8 months ago

This probably works better than syncthing for mirroring shell history.

[–] delirious_owl@discuss.online 4 points 8 months ago

Smells like fish

[–] vort3@lemmy.ml 2 points 8 months ago (2 children)

Can it integrate fzf or does it have fuzzy search?

[–] Fryboyter@discuss.tchncs.de 12 points 8 months ago
[–] stepanzak@iusearchlinux.fyi 6 points 8 months ago (1 children)

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@mander.xyz 1 points 8 months ago (1 children)

TUI... Text user interface?

[–] yogthos@lemmy.ml 2 points 8 months ago

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.