Skip to content

Instantly share code, notes, and snippets.

@mindmergedesign
Created February 14, 2014 18:33
Show Gist options
  • Save mindmergedesign/9006399 to your computer and use it in GitHub Desktop.
Save mindmergedesign/9006399 to your computer and use it in GitHub Desktop.
Sync Sublime Text 3 Packages and Settings with Dropbox
####################
# FROM MAIN COMPUTER
####################
# Create the sync directory in Dropbox
$ mkdir ~/Dropbox/sublime-text-3
# Move your ST3 "Packages" and "Installed Packages" to Dropbox
$ cd ~/Library/Application\ Support/Sublime\ Text\ 3
$ mv Packages/ ~/Dropbox/sublime-text-3
$ mv Installed\ Packages/ ~/Dropbox/sublime-text-3
# Then symlink your Dropbox directories back locally
$ ln -s ~/Dropbox/sublime-text-3/Packages
$ ln -s ~/Dropbox/sublime-text-3/Installed\ Packages
######################
# FROM OTHER COMPUTERS
######################
# Remove the "outdated" directories
$ cd ~/Library/Application\ Support/Sublime\ Text\ 3
$ rm -rf Packages
$ rm -rf Installed\ Packages
# Then symlink your Dropbox directories back locally
$ ln -s ~/Dropbox/sublime-text-3/Packages
$ ln -s ~/Dropbox/sublime-text-3/Installed\ Packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment