Skip to content

Instantly share code, notes, and snippets.

@kristw
Last active October 24, 2022 11:11
Show Gist options
  • Save kristw/8b238cf0961abb466ced to your computer and use it in GitHub Desktop.
Save kristw/8b238cf0961abb466ced to your computer and use it in GitHub Desktop.
Sync Sublime Text 3 settings
# 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"
# 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"
@MizunaRei
Copy link

MizunaRei commented Oct 24, 2022

We only need to sync this folder.
/Users/username/Library/Application Support/Sublime Text 3/Packages/User

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment