Skip to content

Instantly share code, notes, and snippets.

@RicardoWEBSiTE
Created February 11, 2014 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RicardoWEBSiTE/8943210 to your computer and use it in GitHub Desktop.
Save RicardoWEBSiTE/8943210 to your computer and use it in GitHub Desktop.
Sync installed packages & preferences across machines with Dropbox
#!/bin/bash
echo -n "Sublime Text 2 or 3? "
read version
echo "Removing file system packages"
rm -r ~/Library/Application\ Support/Sublime\ Text\ $version/Installed\ Packages
rm -r ~/Library/Application\ Support/Sublime\ Text\ $version/Packages
rm -r ~/Library/Application\ Support/Sublime\ Text\ $version/Pristine\ Packages
echo "Symlinking to Dropbox"
ln -s ~/Dropbox/Sublime/Installed\ Packages ~/Library/Application\ Support/Sublime\ Text\ $version/Installed\ Packages
ln -s ~/Dropbox/Sublime/Packages ~/Library/Application\ Support/Sublime\ Text\ $version/Packages
ln -s ~/Dropbox/Sublime/Pristine\ Packages ~/Library/Application\ Support/Sublime\ Text\ $version/Pristine\ Packages
echo "Symlinking sub command"
ln -s /Users/RicardoNascimento/Applications/Sublime\ Text\ $version.app/Contents/SharedSupport/bin/subl /usr/local/bin/sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment