Created
September 2, 2013 14:41
-
-
Save shayan/6413587 to your computer and use it in GitHub Desktop.
Sync Sublime Text 3 settings with Dropbox
This file contains hidden or 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
| # --- Syncing Sublime --- | |
| # Quit Sublime Text 3 | |
| # Create the sync directory in Dropbox | |
| $ mkdir ~/Dropbox/Apps/Sublime\ Text\ 3/ | |
| # Move your Sublime Text 3 "Packages" and "Installed Packages" to Dropbox | |
| $ cd ~/Library/Application\ Support/Sublime\ Text\ 3/ | |
| $ mv Packages/ ~/Dropbox/Apps/Sublime\ Text\ 3/ | |
| $ mv Installed\ Packages/ ~/Dropbox/Apps/Sublime\ Text\ 3/ | |
| # Symlink your Dropbox directories back locally | |
| $ ln -s ~/Dropbox/Apps/Sublime\ Text\ 3/Packages/ ~/Library/Application\ Support/Sublime\ Text\ 3/Packages | |
| $ ln -s ~/Dropbox/Apps/Sublime\ Text\ 3/Installed\ Packages/ ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages | |
| # --- Syncing other computers --- | |
| # Remove "Packages" and "Installed Packages" directories | |
| $ cd ~/Library/Application\ Support/Sublime\ Text\ 3/ | |
| $ rm -rf Packages/ | |
| $ rm -rf Installed\ Packages/ | |
| # Symlink your Dropbox directories back locally | |
| $ ln -s ~/Dropbox/Apps/Sublime\ Text\ 3/Packages/ ~/Library/Application\ Support/Sublime\ Text\ 3/Packages | |
| $ ln -s ~/Dropbox/Apps/Sublime\ Text\ 3/Installed\ Packages/ ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment