How to Sync Sublime Text Packages
Instructions
- Create a designated folder inside your cloud folder (e.g. iCloud Drive) and copy the path to folder.
- From the machine that has all the necessary packages installed (primary), replace the bracketed path, and run following command on Terminal:
mv '~/Library/Application Support/Sublime Text 3/Packages/User' [path to cloud folder]
- Same as previous step, replace the path with your own and run the command:
ln -s [path to cloud folder] '~/Library/Application Support/Sublime Text 3/Packages/User'
- On other machines, (i.e. secondary, this machine will use the packages from the cloud) run the following command to erase the current packages:
rm -r '~/Library/Application Support/Sublime Text 3/Packages/User'
- Once the local packages removed, we can create the symlink to the cloud with the following command:
ln -s [path to cloud folder] '~/Library/Application Support/Sublime Text 3/Packages/User'
It’s a simple trick using a symlink and relatively straightforward. I do want to emphasize again, the procedure will take the packages from primary then distribute it to secondary machines during the setup. Once completed, you can add a new package to Sublime Text from any machine.