Getting Saucy

Syncing User Packages for ST2

Introduction

user

Jake Champlin

Husband, Hacker, Padawan, Operations Engineer, Gearhead, and Pancake Enthusiast


Syncing User Packages for ST2

Posted by Jake Champlin on .
Featured

Syncing User Packages for ST2

Posted by Jake Champlin on .

st2-preview

Recently (read as: "This Week") I've nearly fallen in love with Sublime Text and you should seriously try it out if you haven't already. You can use Sublime Text and evaluate it for free, yet a license must be purchased for continued use. I've used it for the past week now, and started the process of configuring my development bed around Sublime Text.
I'll cover my Sublime Text configuration later on in the post.

One of the first issues I ran into with Sublime Text was maintaining a concurrent setup across my iMac at work and my MBP at home. As a native Vim lover, I was used to creating a symbolic link to a Dropbox file of my .vimrc and .vim directories. And in fact, it is quite the same process for Sublime Text.

OSX

In OSX, first find which machine you wish to copy the settings from.
hint: it's the Sublime Text 2 that you have already fully configured to your liking at the time.

On that machine make sure that Sublime Text 2 is fully closed, then create a Dropbox folder to hold your User Packages folder. Then create a symbolic link between the two.

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/  
mkdir ~/Dropbox/Sublime  
mv User ~/Dropbox/Sublime/  
ln -s ~/Dropbox/Sublime/User  

Note: If your Dropbox folder is mounted in a different directory than ~/Dropbox then replace the directory path specified above with the path to your local Dropbox directory.

Sublime Text 3: Simply replace the Sublime\ Text\ 2/ directory with: Sublime\ Text\ 3/ directory path.

Then on every subsequent machine that you wish to sync your Sublime Text settings with, remove your User Packages directory and create a symbolic link to your Dropbox User directory.

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/  
rm -r User  
ln -s ~/Dropbox/Sublime/User  

When you start up Sublime Text again on the subsequent machines, Sublime Text will start to download and install all the packages from your User Packages directory. As well as implement all of your settings specified in your User Settings.
Note: If you are working with a fresh install of Sublime Text, you will have to install Package Control before any packages can be synced.

My Sublime Text Configuration

As of 4/29/14. WIP

My Currently Used Packages:

My Current User Settings:

    "bold_folder_labels": true,
    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
    "fade_fold_buttons": false,
    "highlight_line": true,
    "ignored_packages":
    [
    ],
    "line_padding_bottom": 1,
    "line_padding_top": 1,
    "theme": "Soda Dark.sublime-theme",
    "vintage_start_in_command_mode": true
}

Yes, of course I use vintage mode, and start in command mode. Some habits never change.

Life is like topography, Hobbes. There are summits of happiness and success, flat stretches of boring routine and valleys of frustration and failure.

user

Jake Champlin

Husband, Hacker, Padawan, Operations Engineer, Gearhead, and Pancake Enthusiast