-
-
Save chrizel/03f68118a6afcd57b4fcdac85357cf84 to your computer and use it in GitHub Desktop.
Sync your Sublime Text Settings using iCloud Drive on multiple Macs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Notes | |
# Using iCloud Drive, you can sync your Sublime Text | |
# plugins and prefs so you can always have the same setup | |
# Prerequisites | |
# Make sure both machines have the latest version of OSX 10.10.x with | |
# Yosemite or higher and iCloud Drive turned on | |
# Quit Sublime Text | |
# Pick a machine with Sublime Text that has the latest setup you want to start with | |
# Run step 1 and wait for your iCloud files to sync across the network | |
# Run step 2 on other machine(s) to duplicate the same settings | |
# Open up Sublime Text on the new machines and wait while Sublime Text updates your packages | |
# If you're using any system wide packages on the host machine | |
# (e.g. those installed via npm i -g) be sure to replicate them on the | |
# host machine(s) as well | |
# If your Sublime Text doesn't have Package Control make sure to install it | |
# https://packagecontrol.io/installation | |
# Step 1) run this on the host mac that has the latest ST settings & packages | |
cd ~/Library/Application\ Support/Sublime\ Text/Packages | |
mkdir -p ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Sublime\ Text/Plugins | |
mv User ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Sublime\ Text/Plugins | |
ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Sublime\ Text/Plugins/User | |
# Optional backup the User folder on the agent mac before wiping it out | |
cp -R ~/Library/Application\ Support/Sublime\ Text/Packages/User ~/User | |
# Steps 2) run this on your agent machine(s) you want mirroring the mac from step 1 | |
cd ~/Library/Application\ Support/Sublime\ Text/Packages | |
rm -rf User | |
ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Sublime\ Text/Plugins/User | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment