Skip to content

Instantly share code, notes, and snippets.

@Blumed
Last active January 24, 2017 13:38
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 Blumed/79e80820f41f5fd9ba0b047febc9030a to your computer and use it in GitHub Desktop.
Save Blumed/79e80820f41f5fd9ba0b047febc9030a to your computer and use it in GitHub Desktop.
Bash: Create a centralized Sublime Text User Preference
#-----------------------------------------------------
# Sublime Text 3 - Syncing User Prefrences
#-----------------------------------------------------
#Put these snippets inside your .bash_profile
#Call this snippet on your first computer
sublimeOrigin() {
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
mkdir ~/Dropbox/Sublime
mv User ~/Dropbox/Sublime/
ln -s ~/Dropbox/Sublime/User
}
#Call this snippet on new computers
sublimeSync() {
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
rm -r User
ln -s ~/Dropbox/Sublime/User
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment