Skip to content

Instantly share code, notes, and snippets.

@chancesmith
Forked from mindmergedesign/st3_sync
Last active April 7, 2017 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chancesmith/44d3aac78ba337b3c784ddec370dfab1 to your computer and use it in GitHub Desktop.
Save chancesmith/44d3aac78ba337b3c784ddec370dfab1 to your computer and use it in GitHub Desktop.
Sync Sublime Text 3 Packages and Settings with Dropbox

Sync ST3 Packages & Settings with Dropbox or Encore

Inital setup from main computer

Create the sync directory in Dropbox

  • $ mkdir ~/Dropbox/sublime-text-3

Move your ST3 "Packages" and "Installed Packages" to Dropbox

  • $ cd ~/Library/Application\ Support/Sublime\ Text\ 3
  • $ mv Packages/ ~/Dropbox/sublime-text-3
  • $ mv Installed\ Packages/ ~/Dropbox/sublime-text-3

Then symlink your Dropbox directories back locally

  • $ cd ~/Library/Application\ Support/Sublime\ Text\ 3
  • $ ln -s ~/Dropbox/sublime-text-3/Packages
  • $ ln -s ~/Dropbox/sublime-text-3/Installed\ Packages

Connect other computers to ST3 files in Dropbox

Remove the local/old/outdated directories

  • $ cd ~/Library/Application\ Support/Sublime\ Text\ 3
  • $ rm -rf Packages
  • $ rm -rf Installed\ Packages

Then symlink your Dropbox directories back locally

  • $ cd ~/Library/Application\ Support/Sublime\ Text\ 3
  • $ ln -s ~/Dropbox/sublime-text-3/Packages
  • $ ln -s ~/Dropbox/sublime-text-3/Installed\ Packages

Encore path

symlink

  • $ cd ~/Library/Application\ Support/Sublime\ Text\ 3
  • $ ln -s ~/.dropbox-two/Dropbox/sublime-text-3/Packages
  • $ ln -s ~/.dropbox-two/Dropbox/sublime-text-3/Installed\ Packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment