I recently updated the Mac OS X setup guide I maintain to an interactive Gitbook. You can reference it here (Mac OS X Setup Guide).

Screenshot

This book covers the basics of setting up development environment on a new MacBook for most major languages. All instructions covered have been tried on Mountain Lion and Mavericks but they might be more inclined towards Mavericks. Whether you are an experienced programmer or not, this book is intended for everyone to use as a reference when installing some language/library.

We will set up Node (JavaScript), Python, CPlusPlus, and Ruby environments. Even if you don’t program in all three, it is good to have them as many command-line tools use one of them. We also install a few daily use application and Latex. As you read and follow these steps, feel free to send me any feedback or comments you may have.

All contributions to the book are welcome. Please help add support for other libraries and languages.