John Piasetzki's Blog

My Thoughts

Git Dotfiles Without the Bloat (Rake, Yadr, Make, Kitchen Sink!)

I finally got around to adding my dotfiles into git. All the methods I could find on github were too bloated for my liking (I don’t like to use build scripts for until necessary).

So I rolled my own (clone it on git). Super simple one line bash post-commit updates all my symbolic links. Every time something gets committed it symbolic links all the files in the .dotfile folder into your home directory.

find ~/.dotfiles/ -type f -name ".*" -exec ln -s -f {} 
    --target-directory=$HOME \;

Fork it, change it or tell me why I’m wrong!