Among those around me, in world of tech startups (even in the vicinity of the world of Windows), MacBooks are used almost universally. I can’t explain the discrepancy between what I see around me and the data you usually read; but I do know that as a technical platform, OS X provides an easier path to development tools. These days, the world driven by web-based applications. A majority of those applications run on Linux-based machines. OS X shares with Linux, a common ancestor, Unix. So, a robust array of common commands come with OS X—
emacs, etc. But more importantly, OS X comes pre-installed with hottest development tools used for web development, today—Ruby, Python, PHP, Apache, memcache, etc. This means a developer can write web applications without even being connected to the Internet!
There are more tools available with the free download of Xcode, Apple’s integrated development environment (IDE) for OS X and iOS. Xcode provides exclusive tools for developing applications for OS X and iOS. More than that is can make additional commands available to command-line, that are generally useful for development, even outside Apple app development—
gcc, etc. There are three ways to access these tools:
- Download and install, from within Xcode, the huge “Command Line Tools”. This is big and tedious.
- Prefix the desired command with
xcrun, as in:
xcrun git clone https://github.com/wrlee/_nix-scripts.git
An alias can be created to use this in its more familiar form,
alias git='xcrun git' git clone https://github.com/wrlee/_nix-scripts.git
But this has side-effects (scripts that rely on its native access as a command may not work).
Add the path to the commands installed within Xcode to the execution path:
Note that some of the tools (e.g,. Ruby) are rather old and may need to be updated, depending on your needs.—at least there is something to start with. The downside is that Apple does not provide those updates. I can document those steps—if you are interested, let me know.
The question is, why spend the time and disk-space to download and install the full Command Line Tools when a simple
PATH update is all that is needed?