Skip to content

Instantly share code, notes, and snippets.

@tsucaet
Forked from mindmergedesign/st3_sync
Created October 28, 2016 09:12
Show Gist options
  • Save tsucaet/5b09506f74f458c8d4695e8c1c783946 to your computer and use it in GitHub Desktop.
Save tsucaet/5b09506f74f458c8d4695e8c1c783946 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