Taken from mathiasbynens/dotfiles. Save time and pain from customising your clean-installed Mac, install web development tools and native applications. It's straight-forward and simple, here's how you run it:
Download osx.sh
and tools.sh
to your desktop, open osx.sh
on your favorite text editor and change these lines:
# Set computer name (as done via System Preferences → Sharing)
sudo scutil --set ComputerName "Pongstr"