SublimeText 3 - keeping your settings in sync across multiple computers with MacOSX
I use Sublime Text 3 for development and all other text-editing needs. It’s great editor - give it a go if you didn’t try it yet.
Unfortunately it does not provide any way to keep settings in sync between computers and I like if it looks and behaves in very consistent way. The good news is that, it’s really easy to implement such feature using Dropbox. This howto assumes you have standard installation of Dropbox with main folder in ~/Dropbox.
Here’s how to do it on MacOSX:
Moving all your current settings to Dropbox
You have to do it just once. After those steps, all your configuration will be stored on Dropbox.
Paste following commands into terminal:
mkdir $HOME/Dropbox/sublime-text-3/ mv "$HOME/Library/Application Support/Sublime Text 3/Packages" "$HOME/Dropbox/sublime-text-3/" mv "$HOME/Library/Application Support/Sublime Text 3/Installed Packages" "$HOME/Dropbox/sublime-text-3/"
Setting up sync
This step needs to be executed on every computer that you want to setup sync with. Once again, paste following into terminal:
DSTPATH="$HOME/Library/Application Support/Sublime Text 3" DROPBOX_PATH="$HOME/Dropbox/sublime-text-3" rm -rf "$DSTPATH/Installed Packages" rm -rf "$DSTPATH/Packages" mkdir -p "$DSTPATH" ln -s "$DROPBOX_PATH/Packages" "$DSTPATH/Packages" ln -s "$DROPBOX_PATH/Installed Packages" "$DSTPATH/Installed Packages"
I like to keep the above commands saved in a script as ~/Dropbox/sublime-text-3/create_macosx_symlinks.sh so I can setup sync on new comptuers easily and quickly.