Last active
January 24, 2017 13:38
-
-
Save Blumed/79e80820f41f5fd9ba0b047febc9030a to your computer and use it in GitHub Desktop.
Bash: Create a centralized Sublime Text User Preference
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
#----------------------------------------------------- | |
# 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