atuin: global search
• 150 words • 1 min
Scenario:
- machine 1, day 1: run a bunch of commands
- machine 2, day 2: I’d like to run a subset of the commands I ran yesterday. If only I could remember them! I do not have access to machine 1 at the moment.
Enter atuin global search!
Assuming that you set up atuin sync in both machines, all you have to do is
this:
- enter machine 2, run
atuin synconce, manually1:
shell
thiago.perrotta ~
% atuin sync
Uploading 102 records to 0198c192{redacted}d30370fad/history
[00:00:00] [##########################] 102/102 (0.0s)3/0 up/down to record store
Sync complete! 105855 items in history database, force: false- press
Cmd-R(orCtrl-R), ensure the filter mode is set toglobal:
global (default): Search from the full history
-
grep for the desired commands in the interactive TUI that will follow
-
profit!
This is peak PKM! It just works™.
-
Or simply wait until it happens in the background automatically. ↩︎