I use something similar, along with dotbot (https://github.com/anishathalye/dotbot) to wire up other application’s settings files. There’s lots of good examples around to steal and tweak.
Mackup (https://github.com/lra/mackup) is a great tool for this. Beware, however, that it creates symlinks in place of your existing files. So if you decide you don't like it, run the uninstall command before removing the Mackup folder or bad things will happen (I learned from experience).