Skip to content

Instantly share code, notes, and snippets.

@jptcnde
Forked from mindmergedesign/st3_sync
Created March 31, 2018 12:11
Show Gist options
  • Save jptcnde/423143158c1c82919e56826cbbf85370 to your computer and use it in GitHub Desktop.
Save jptcnde/423143158c1c82919e56826cbbf85370 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