Migrate Sublime Text settings files from Dropbox to iCloud

Memo for myself, if I need make this again in the future…

On first computer I set sync directory to iCloud. First create new directory on iCloud, then move my Sublime Text 3 settings and preferences into it and then link this local destination to my iCloud folder.

# make new directory on iCloud
mkdir ~/Library/Mobile\ Documents/com~apple~CloudDocs/Sync/Sublime\ Text\

# get in application preferences folder
cd ~/Library/Application\ Support/Sublime\ Text\ 3/

# move User data for syncing do iCloud
mv Installed\ Packages/User/ ~/Library/Mobile\ Documents/com~apple~CloudDocs/Sync/Sublime\ Text\

# link this directory on iCloud to the app directory
ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/Sync/Sublime\ Text/User

On my other computers I used this commands. Go into Sublime Text 3 Packages directory, remove old User directory and then link it to synced folder.

# get in application preferences folder
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/

# remove folder User
rm -r User

# link to User folder on iCloud
ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/Sync/Sublime\ Text/User