Setup oh-my-zsh for macOS to improve your terminal experience
Install Homebrew
- Run this command in terminal
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- It will ask you to install macOS developer tools. Accept the terms and proceed.
- It will take a while to finish installing homebrew.
- Make sure you Homebrew installation succeeded by running following command
Install oh-my-zsh
- Install iterm2 to replace standard terminal
- Install custom font to enhance your terminal experience
Few font recommendations
- Go to iterm2 preferences -> Profiles -> Text to select your new font.
- Install ‘oh-my-zsh’.
- Update your zsh to latest version from Homebrew
- Change you default shell to zsh
- Install “oh-my-zsh” Follow instructions
- Install pure theme
cd ~/.oh-my-zsh/custom && \
git clone https://github.com/sindresorhus/pure && \
ln -s pure/pure.zsh-theme . && \
ln -s pure/async.zsh .
- Set pure theme to launch on startup
vim ~/.zshrc
# Set ZSH_THEME to ZSH_THEME=refined
- Install optional zsh packages using ‘brew install package-name’
zsh-autosuggestions zsh-lovers
zsh-completions zsh-navigation-tools
zsh-git-prompt zsh-syntax-highlighting
zsh-history-substring-search
This is how my setup looks
- iTerm2
- Color scheme iterm2-Snazzy
- Hermit Font