Skip to content

Instantly share code, notes, and snippets.

@mimetaur
Forked from mindmergedesign/st3_sync
Created August 17, 2017 10:57
Show Gist options
  • Save mimetaur/80a8d4b537e2869fbf74059c867c9dcd to your computer and use it in GitHub Desktop.
Save mimetaur/80a8d4b537e2869fbf74059c867c9dcd to your computer and use it in GitHub Desktop.
Sync Sublime Text 3 Packages and Settings with Dropbox
####################
# 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
$ ln -s ~/Dropbox/sublime-text-3/Packages
$ ln -s ~/Dropbox/sublime-text-3/Installed\ Packages
######################
# FROM OTHER COMPUTERS
######################
# Remove the "outdated" directories
$ cd ~/Library/Application\ Support/Sublime\ Text\ 3
$ rm -rf Packages
$ rm -rf Installed\ Packages
# Then symlink your Dropbox directories back locally
$ ln -s ~/Dropbox/sublime-text-3/Packages
$ ln -s ~/Dropbox/sublime-text-3/Installed\ Packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment