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 iTerm2
Install Z shell (Zsh), a command shell with very efficient command-line completion, spelling corrections, command history...
On the terminal:
brew install zsh
Install 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 ~/.zshrc
Or even using TextEdit:
open ~/.zshrc
At this point you can do whatever personalization you desire.
My setup:
- Change the color profile of
iTerm2
to thecolorPreset
in this repository. IniTerm2
:
Preferences
-> Profiles
-> Colors
-> Color Presets...
-> Import...
Select the file colorPreset.itermcolors
.
-
In
.zshrc
, I setZSH_THEME
to"pygmalion"
. -
Install neofetch to have a pretty launching screen.
brew install neofetch
Your terminal should end up looking like this: