-
-
Save mimetaur/80a8d4b537e2869fbf74059c867c9dcd to your computer and use it in GitHub Desktop.
Sync Sublime Text 3 Packages and Settings with Dropbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################### | |
# 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