Skip to content

Instantly share code, notes, and snippets.

@there4
Forked from Airr/sublime-sync-dropbox.txt
Created April 26, 2013 00:28
Show Gist options
  • Save there4/5464325 to your computer and use it in GitHub Desktop.
Save there4/5464325 to your computer and use it in GitHub Desktop.
* Quit Sublime Text 2 (so you don’t accidentally change any settings)
* In your Dropbox folder (usually at ~/Dropbox/), add a folder called Sublime Text 2
* Open the folder with your ST2 settings (should be ~/Library/Application Support/Sublime Text 2/)
* Copy the following 3 folders into ~/Dropbox/Sublime Text 2/: Installed Packages, Packages, and Pristine Packages
* Rename the original 3 folders in ~/Library/Application Support/Sublime Text 2/ to something like Installed Packages-20110119,
* Packages-20110119, and Pristine Packages-20110119 (optional, but I’m kind of anal about these things, so I want to make sure I can revert if need be)
* Now, dive into Terminal.app (if you’re not comfortable using a CLI, you probably aren’t a good candidate for ST2)
* Navigate into ~/Library/Application Support/Sublime Text 2/ (using cd, you got this, right?)
* Here, we’re going to create symlinks to the folders in ~/Dropbox/Sublime Text 2/
* The command to create a symlink is ln -s [source] [destination], so we want to do the following, 1 at a time:
- ln -s ~/Dropbox/Sublime\ Text\ 2/Installed\ Packages ./Installed\ Packages
- ln -s ~/Dropbox/Sublime\ Text\ 2/Packages ./Packages
- ln -s ~/Dropbox/Sublime\ Text\ 2/Pristine\ Packages ./Pristine\ Packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment