Sublime Text 2 more sublime with a drop of Dropbox
January 19, 2012, 9:19 pm · 9 comments · Filed under: Coda, Web Development
I’ve been a big fan of Panic’s Coda since early on (and skEdit before that). But, move over bacon, there’s a new sheriff in town. After just a few days of use, I’m all in with Sublime Text 2.
Among its many great features, one of the cool things about ST2 is the licensing terms. Buy a license and you can use it on as many machines as you like. In this modern age, this is as it should be.
ST2 is great out of the, uh, download (we need a new metaphor here, people), but packages go a long way towards extending its functionality. Problem is, once you start adding a bunch of packages (the first of which should be Package Control), it becomes a nuisance to keep them in sync across installations on multiple machines.
In case you live under a rock, Dropbox is incredibly simple, reliable software that syncs a folder or folders between multiple computers. If you don’t already have an account, get yours here (and help me get a bit more storage space in the process [this is referred to colloquially as a “win-win”]).
The following steps (which are for OS X, please add how to do this on Windows & Linux if you know how!) should get you up and running with synchronized packages across multiple machines:
- 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/:
- Rename the original 3 folders in
~/Library/Application Support/Sublime Text 2/to something like
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
- There is no step 10.
When you’re done, you should end up with something like this.
That should do it. Fire up ST2 and make sure you have the list of packages you expect to. Just to be sure, install another package and make sure it shows up in
~/Dropbox/Sublime Text 2/Packages/.
WFM YMMV :-)
For good measure, here are the packages I have installed. Feel free to recommend others in the comments!
- Package Control (start here and use it to install the rest)
Short URL to this article:
Tweet this article!