Install Atuin and reshape your shell history management
I like the old CTRL+r paired with fzf, but one thing this setup missed is syncing history when I’m working from the laptop so my little guy can play Lego city on my PC. I try to keep as little tools as possible in my workflow so it’s repeatable but Atuin has earned its place recently.
Install
We need two things, A client and an Atuin server we self-host. In my case I keep it on one of my server so I can access my history from both my laptop and desktop.
Client
| |
Server
| |
You will need to populate a .env file for the database credentials, make sure you change the password to a secure value and the permissions on the file are limited. It should be in the same directory as your docker-compose file
| |
Once this is running you will need to change some settings in your $HOME/.config/atuin/config.toml
In my case I need to set the sync_url to my hosting server but if you’re running only locally, you need to set it to localhost or 127.0.0.1 to be able to register.
For example, when edited here’s what you should have

One thing that I do modify is the enter_accept setting, I feel more secure knowing I can accept a command and reread or modify it after the fact.
Take a look at the config options for things you might like
All that’s left to do then is run two commands:
| |
Now your shell history is synced and you can have it follow from machine to machine if you want to!
