Sync sublime settings across

For me personally it was pretty annoying that there was no build in mechanizm of syncing preferences, especially those related to keyboard shortcuts or remapping. He re come the husaria - I found very easy way of doing it.

I will use github here but if you prefer you may apply other git service of your personal preference of choice.

mv ~/Library/Application Support/Sublime Text/Packages/User/ /var/tmp/

Not create repository in github - suggestion it is to make it private if you don't want to share your personal settings to wide audience.

Next we go to local settings folder and checkout project from github.

cd ~/Library/Application Support/Sublime Text/Packages/
git clone git clone<your GH username>/sublime.git User

Now add moved files back.

cd ~/Library/Application Support/Sublime Text/Packages/User
mv /var/tmp/User/* .
git add .
git commit -m "init commit" .
git push --set-upstream origin main

Now we will be able to track all setting changes with git. Each time you update something you can got to above folder commit those change and push them to yoiur git repository.

One thing to notice is to add some files to .gitignore that we shall ignore from tracking.

Package Control.last-run
Package Control.system-ca-bundle
Package Control.cache/
Package Control.user-ca-bundle

Have fun!