Skip to content

Instantly share code, notes, and snippets.

@shayan
Created September 2, 2013 14:41
Show Gist options
  • Select an option

  • Save shayan/6413587 to your computer and use it in GitHub Desktop.

Select an option

Save shayan/6413587 to your computer and use it in GitHub Desktop.
Sync Sublime Text 3 settings with Dropbox
# --- Syncing Sublime ---
# Quit Sublime Text 3
# Create the sync directory in Dropbox
$ mkdir ~/Dropbox/Apps/Sublime\ Text\ 3/
# Move your Sublime Text 3 "Packages" and "Installed Packages" to Dropbox
$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/
$ mv Packages/ ~/Dropbox/Apps/Sublime\ Text\ 3/
$ mv Installed\ Packages/ ~/Dropbox/Apps/Sublime\ Text\ 3/
# Symlink your Dropbox directories back locally
$ ln -s ~/Dropbox/Apps/Sublime\ Text\ 3/Packages/ ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
$ ln -s ~/Dropbox/Apps/Sublime\ Text\ 3/Installed\ Packages/ ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages
# --- Syncing other computers ---
# Remove "Packages" and "Installed Packages" directories
$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/
$ rm -rf Packages/
$ rm -rf Installed\ Packages/
# Symlink your Dropbox directories back locally
$ ln -s ~/Dropbox/Apps/Sublime\ Text\ 3/Packages/ ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
$ ln -s ~/Dropbox/Apps/Sublime\ Text\ 3/Installed\ Packages/ ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment