Last active
October 24, 2022 11:11
-
-
Save kristw/8b238cf0961abb466ced to your computer and use it in GitHub Desktop.
Sync Sublime Text 3 settings
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
# If you are working in multiple computers, you might want to keep and apply the same Settings for SublimeText across these computers. | |
# We can set this up with the help of Dropbox (and a small tweak). | |
# Credit: http://www.hongkiat.com/blog/sublime-text-tips/ | |
# First, run the following command in Terminal. | |
DROPBOX_PATH=$HOME/Dropbox/settings/sublime-text-3/ | |
mkdir -p $DROPBOX_PATH | |
mv "$HOME/Library/Application Support/Sublime Text 3/Packages" "$DROPBOX_PATH" | |
mv "$HOME/Library/Application Support/Sublime Text 3/Installed Packages" "$DROPBOX_PATH" | |
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
# Then run this command in Terminal in every other computer you want synchronized with the Settings that we have put in Dropbox. | |
DROPBOX_PATH=$HOME/Dropbox/settings/sublime-text-3/ | |
DSTPATH="$HOME/Library/Application Support/Sublime Text 3" | |
rm -rf "$DSTPATH/Installed Packages" | |
rm -rf "$DSTPATH/Packages" | |
mkdir -p "$DSTPATH" | |
ln -s "$DROPBOX_PATH/Packages" "$DSTPATH/Packages" | |
ln -s "$DROPBOX_PATH/Installed Packages" "$DSTPATH/Installed Packages" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We only need to sync this folder.
/Users/username/Library/Application Support/Sublime Text 3/Packages/User