Useful steps and tips to set up a MacOS for iOS development
Install Homebrew, the best package manager for macOS.
In the Terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"Install iTerm2 with Homebrew, iTerm2 is a good alternative to the Terminal included in macOS.
brew cask install iTerm2Install Z shell (Zsh), a command shell with very efficient command-line completion, spelling corrections, command history...
On the terminal:
brew install zshInstall Oh My ZSH!, a community-driven framework for managing your Zsh configuration.
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"With Oh My ZSH!, you can add useful plugins to your shell, create aliases for commonly used functions, change auto-completion settings, change the theme of your shell...
Everything is configurable in the file .zshrc that you can find in the root of your user folder: ~/.zshrc.
You can edit this file using Vim by typing in the terminal:
vi ~/.zshrcOr even using TextEdit:
open ~/.zshrcAt this point you can do whatever personalization you desire.
My setup:
- Change the color profile of
iTerm2to thecolorPresetin this repository. IniTerm2:
Preferences -> Profiles -> Colors -> Color Presets... -> Import...
Select the file colorPreset.itermcolors.
-
In
.zshrc, I setZSH_THEMEto"pygmalion". -
Install neofetch to have a pretty launching screen.
brew install neofetchYour terminal should end up looking like this:
