misfoc.us

  • Archive
  • RSS
  • Ask me anything

Syncing Sublime Text 2 Settings via Dropbox

I just recently purchased Sublime Text 2 and thought I would do some digging into syncing the config files via Dropbox (affiliate link). There’s no real way of changing where Sublime looks for it’s file, but we can skirt this issue using symlinks. I run Sublime on Mac and a Windows machine, so I’ll post directions for both platforms.

Windows

(has been tested on Sublime Text 2 build 2165 on Windows 7)

First, create a folder in your Dropbox path where you’d like to put your Sublime files. I used

{Dropbox Path}/appdata/sublime

You’ll need to find out where Sublime is saving your settings. I found this by clicking on the Browse Packages menu option under Preferences. Here’s what mine looked like:

C:\Users\username\AppData\Roaming\Sublime Text 2\Packages

Make sure you’ve closed Sublime Text before continuing.

Copy Packages, Installed Packages, and Pristine Packages to the folder you’ve created on Dropbox.

At this point, remove the actual folders from the Sublime path. We’re going to create some symlinks now. Open a CMD window with administrator rights and navigate to the the above folder location and run the following:

mklink /D "Installed Packages" "C:\path\to\Dropbox\appdata\sublime\Installed Packages"
mklink /D "Packages" "C:\path\to\Dropbox\apps\sublime\Packages" 
mklink /D "Pristine Packages" "C:\path\to\Dropbox\apps\sublime\Pristine Packages"

You should now be able to fire up Sublime Text which will pull your data from Dropbox.

Mac

Make sure Sublime Text is closed before continuing.

Open up a Terminal window and navigate to the Sublime Text setting folder

cd ~/Library/Application\ Support/Sublime\ Text 2/

You’ll most likely already have package folders here, so you’ll need to remove them first

rm -r Installed\ Packages
rm -r Packages
rm -r Pristine\ Packages

Now, we’re going to create symlinks to the folders in

~/Dropbox/appdata/sublime/

Run the following commands to create the needed symlinks

ln -s ~/Dropbox/appdata/sublime/Installed\ Packages ./Installed\ Packages
ln -s ~/Dropbox/appdata/sublime/Packages ./Packages
ln -s ~/Dropbox/appdata/sublime/Pristine\ Packages ./Pristine\ Packages

You should now be able to fire up Sublime Text using the settings information present in your Dropbox folder.

    • #dropbox
    • #sublime text
    • #how-to
    • #mac
    • #windows
  • 1 year ago
  • 9
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

9 Notes/ Hide

  1. sineld likes this
  2. chromosome likes this
  3. namastemahalo likes this
  4. mobileandwebdesignbunch likes this
  5. chrisbrakebill reblogged this from misfocus and added:
    syncing sublime text...between multiple machines.
  6. tipsandtools reblogged this from misfocus and added:
    it worked flawlessly when
  7. bryanbuchs likes this
  8. misfocus posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

A place for me to post about things that interest me. If you stick around, you might find something interesting!

Me, Elsewhere

  • @landrysplace on Twitter
  • adalan420 on Youtube
  • adalan on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile
Effector Theme by Pixel Union