Completely cross-platform dotfiles, including Windows!
Please see GitHub โค ~/, as they have answered this question as well as anyone.
This is a much better question, and the answer goes beyond being cross-platform to being cross-industry. The fact of the matter is that influential, top-class game development is largely done on Windows even though influential, top-class web development is largely done on OS X.
Though not the norm, I use the majority of these tools to develop games in the same way I use them to develop web applications. I don't feel like context-switching between these two industries should require me to context-switch between two sets of tools (or configurations thereof), hence the effort to make these dotfiles cross-platform.
- Fork the dotfiles.
- Clone your fork somewhere on the same virtual drive as your home folder. I
recommend
~/.dotfiles
. - Run the
install
script. - Edit your dotfiles, especially
.gitconfig
, to match your name, email, machine-specific settings, etc. - Commit your changes to your fork.
- Congratulations, your dotfiles are now safe on GitHub!
One note on changes made to your fork. Please don't include sensitive
information like passwords and keys! If you notice, the ssh
folder includes
a very useful .ssh/config
file. Notice that the actual keys and usernames are
not present. That's one thing you don't want to share with the world.
- Ensure that
git
is available to theinstall
script fornpm
to work correctly (required). - You may have to run the
install
script as Administrator due to symlink permissions being unusual by default. A caveat of runningnode
in the Administrator shell is that you'll need to manually set an additional environment variable. From the shell,cd
into your home directory, then runset HOME = %CD%
. At this point, theinstall
script should work normally.