Syncing the config in Git

I found three preferences files in ~/Library/Preferences for BTT, and I'd like to sync them with Git. However, when I convert them to XML format, BTT switches them back to binary.

Before I write a script that copies the preferences to another folder, convert, push/pull, copy back, I was wonder if there was a better way?

(There were two other posts about this, but no replies.)


I don't think you'll be happy syncing BTT with git.

BTT uses sqlite databases, various files and the standard macOS user defaults system (which is what you are referring to). It names its files after the current version (for being able to downgrade), which also makes using git for this pretty hard. The formats of the files can't be changed.

These are the relevant folders/files:
~/Library/Application Support/BetterTouchTool

Ah, that makes sense. I found another post about exporting the presets, that's probably going to be a better way to go. :smile:

yep, that should work better.
You can also automatically load & override a preset on launch. By default it's using ~/.btt_autoload_preset.json, this can be overridden via defaults write com.hegenberg.BetterTouchTool BTTAutoLoadPath "~/somepath"