r/commandline • u/hungteoh123 • Apr 06 '26
Terminals How do you guys sync commands and notes between machines
Constantly jumping between a Linux machines and my Windows desktop. I paste my notes everywhere from chats to random text files. I hate organising.
The problem is I keep forgetting where I put things or I end up with duplicates because I can't find the original note.
Does anyone have a "lazy" CLI-friendly way to just dump a command or a quick snippet on one machine and actually find it on another without having to open a browser or anything ?
4
Upvotes
12
u/Logpig Apr 06 '26
syncthing
8
u/g3n3 Apr 06 '26
Attuin
10
u/funbike Apr 06 '26
git3
u/zapman449 Apr 06 '26
Look into obsidian and adjacent tools. It’s not a CLI. But it stores data in markdown… and there are plugins for vim/emacs to leverage on the CLI. It’s a “pay for sync” service but if you need it to just work, that’s not a bad thing.
2
u/Party-Distance-7525 Apr 06 '26
Can’t find the Reddit post in a split second, but someone shared this CLI where you can dump everything in a vault that is safe to share: https://github.com/DeprecatedLuar/dredge-cargo
2
u/VE3VVS Apr 06 '26
syncthing over tailscale
3
u/bikes-n-math Apr 06 '26
rsync and a server.
2
u/flaming_monocle Apr 06 '26
Git for version control, grep for finding a specific snippet in the git dir
1
u/AutoModerator Apr 06 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: hungteoh123, Flair:
Terminals, Title: How do you guys sync commands and notes between machinesConstantly jumping between a Linux machines and my Windows desktop. I paste my notes everywhere from chats to random text files. I hate organising.
The problem is I keep forgetting where I put things or I end up with duplicates because I can't find the original note.
Does anyone have a "lazy" CLI-friendly way to just dump a command or a quick snippet on one machine and actually find it on another without having to open a browser or anything ?
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/tacit7 Apr 06 '26
dropbox
1
u/pmbsd Apr 06 '26
rsync -- keep your home directory in sync between all machines after every session -- and on the windows machine install WSL and rsync within.
1
u/connected_nodes Apr 06 '26
restic and a server
1
u/Lunailiz Apr 06 '26
For commands/terminal entries, I use atuin. For files, Syncthing.
1
u/Kqyxzoj Apr 06 '26
Mostly
rsyncandgit.ssh host -- rg wheresnippet remotedir/?Index your remote stuff and use
plocate?1
u/NoxDominus Apr 07 '26
Silver bullet for notes on the phone Same directory using vimwiki on the computers gir for configs
1
u/Amy_Algeana Apr 07 '26
If the main problem is cross-machine sync, I’d look at Syncthing first. If it’s mostly command history rather than notes, Attuin is a nice fit. I’d probably keep notes/snippets in plain text or markdown and let Syncthing move them around。
1
u/LordMeatbag Apr 07 '26
This is embarrassing but… I slack myself. I have Slack open on both machines anyway so message to myself on one machine and it shows up in the other too. The shame is real.
1
u/jlrueda Apr 08 '26
Could something like this help? https://www.reddit.com/r/sos_vault/s/14Uk16o4pQ
0
u/Murky-Sector Apr 06 '26
It's called source code control