If you use Apple Text Replacements
Text Replacements live in System Settings > Keyboard > Text Replacements. Apple says you can keep them up to date on all your Apple devices, and its "Back up and share text replacements" page explains how. If an entry shows up on one Mac and not another, follow that page rather than retyping entries by hand.
Text Replacements suit short codes. If what you reuse is longer, like email replies, addresses, templates or commands, a snippet file you control is easier to keep the same everywhere.
Sync Refrain snippets with iCloud Drive
Refrain keeps every snippet in one markdown file, and you choose where that file lives. Put it in a folder that already syncs and every Mac reads the same list.
On the Mac that already has your snippets:
- Open Refrain's Settings from the menu bar icon (or press Cmd-, in Refrain).
- Click Move File⦠and pick a folder in iCloud Drive. Refrain writes the file there, moves the old copy to the Trash and keeps working from the new location.
On each other Mac:
- Install Refrain and open it.
- In Settings, click Choose File⦠and pick the same file in iCloud Drive.
From then on, a snippet added on one Mac appears on the others once iCloud Drive has synced the file. Refrain watches the file and reloads it when it changes, so there's nothing to refresh.
Keep snippets in git
If you already keep dotfiles or notes in a git repo, put the snippet file there instead. You get a history of every change and can see exactly what changed in a diff, because the file is plain text with a short header per snippet:
---
name: mailing-address
---
[Your name]
[Street address]
[City, State ZIP]
----Pull on each Mac and Refrain picks up the new version. This also works for a team that wants to share one reviewed set of replies.
Tips that avoid surprises
- Edit on one Mac at a time. If two Macs change the file before the sync finishes, the sync service has to pick a version, and one set of edits can end up in a conflicted copy.
- Use Show in Finder in Refrain's Settings to check which file a Mac is using.
- Bulk edits are fine anywhere. Open the file in any text editor on any of your Macs; the others follow after the sync.
What about iPhone and iPad?
Refrain is a Mac app, so it doesn't run on iPhone or iPad. If the file is in iCloud Drive, you can still open it in the Files app to read or copy something on the go, because it is plain text.
For how Refrain and Apple's built-in feature compare overall, see Refrain vs Apple Text Replacement.