this post was submitted on 27 Feb 2025
21 points (100.0% liked)

Linux

50579 readers
1595 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
 

For context Atuin (Github) is a shell history replacement that apparently provides a lot of extra functionality.

Has anyone used it? Im thinking of switching to it but Im worried about its impact on performance and if its worth it.

top 11 comments
sorted by: hot top controversial new old
[–] cheerytext1981 10 points 2 days ago

it’s great, I use it all the time. I run my own server and sync history between my work and personal laptops. If I need history for a specific project, I filter by the workspace (or whatever it’s called)

[–] [email protected] 6 points 2 days ago

It's better than any built-in history tools (including zsh and fish) and I find the sync feature very useful. It's definitely saved me time in having to re-find old commands I used once. Probably the second best quality-of-life tool for the shell after zoxide (a brilliant cd replacement).

[–] [email protected] 6 points 2 days ago* (last edited 2 days ago) (2 children)

Atuin*

I just sync my bash history with dotfiles and use FZF for recalling it. I'm not sold on it.

Also, the same history on different machines would be something I definitely do NOT want. I heavily rely on recent history to re-run commands on different machines with different projects and configurations. Mixing all that would be a mess.

[–] [email protected] 1 points 2 days ago* (last edited 2 days ago) (1 children)

But what about the other features?

(tbf looking at the github I don't see anything special but I have been seeing people using it swear by it so Im wondering what Im missing)

[–] [email protected] 4 points 2 days ago* (last edited 2 days ago) (1 children)

Things I already have:

  • rebind ctrl-r and up (configurable) to a full screen history search UI
  • old history file is not replaced

Things I could find useful once in a while:

  • switch filter modes via ctrl-r; search history just from the current session, directory, or globally

Things I don't care about and probably wouldn't use:

  • back up and sync encrypted shell history
  • log exit code, cwd, hostname, session, command duration, etc
  • calculate statistics such as "most used command"
  • quick-jump to previous items with Alt-
  • enter to execute a command, tab to edit

I really don't want:

  • the same history across terminals, across sessions, and across machines

Not really a feature:

  • store shell history in a sqlite database
[–] [email protected] 1 points 2 days ago

thanks for the comprehensive answer!

[–] [email protected] 1 points 2 days ago

yep 😄 just edited it

[–] [email protected] 5 points 2 days ago

Have used it for a while, it’s great. I don’t want sync between machines, so I just use it as a better local history. It works well, and switching scopes of history so easily is terrific. I do wish the querying / fuzzy matching was a little smarter, but I’ve not seen anything better.

[–] [email protected] 2 points 2 days ago

I would like to use it specifically for the sync between machines, because ridicolous terminal commands like with find, grep or checking/comparing used storage volumes is abysmal to remember. I also set up my own server which worked quite well, I just wish the "client" installation as a proper debian package instead of this stupid shell script.

[–] [email protected] 3 points 2 days ago

I love it. I turn off sync but it's just a much better command history tool

[–] [email protected] 2 points 2 days ago

I don't have any experience with Atuin, but I use and love hstr for similar features.