I'm currently using this dotfiles to set up my Mac!
I use oh-my-zsh with iTerm2, to install and change default shell to zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s $(which zsh)
Find useful plugins for oh-my-zsh here: Oh My Zsh Plugins.
You can customize and launch the brew.sh to install applications and utilities via Homebrew and Brew Cask. To install Homebrew run /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I don' use and installation scripts, I prefer to manually add and copy files in my Home folder and manually run things. Below a description of the main files included in my repo.
Aliases allow you to define shortcuts for commands (loaded by .zshrc).
Commands that are too complex for an alias can become a function
Configuration, aliases, attributes and global ignored files for Git.
The behavior of line input editing and keybindings is stored in a .inputrc file
Many OS X settings can be set from command line. Take a look at the sample and comment/uncomment commands, then run source .osx