I load my major config files (fish, tmux, emacs) in a CI alpine container[0] and check that they're not broken when i commit them.
If you're on OS X then `brew bundle dump` and `brew bundle install` will also help[1]
[0] circleci config: https://gist.githubusercontent.com/bauerd/27b24d1a3f881fe508...