Based on idea from https://github.com/mathiasbynens/dotfiles