macOS Oh-my-zsh installation guide
Setup oh-my-zsh for macOS to improve your terminal experience Link to heading
This guide will walk you through setting up oh-my-zsh on macOS to significantly enhance your terminal experience. We’ll cover installing Homebrew, setting up iTerm2, and configuring oh-my-zsh with a custom theme and plugins.
Install Homebrew Link to heading
- 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
brew --version
Install oh-my-zsh Link to heading
- Install iterm2 to replace standard terminal
brew install iterm
- 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 the latest version from Homebrew:
brew install zsh - Change your default shell to zsh:
chsh /bin/zsh - Install “oh-my-zsh” Follow instructions
- Install the 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 the Pure theme to launch on startup:
vim ~/.zshrc # Set ZSH_THEME to ZSH_THEME=refined
- Update your zsh to the latest version from Homebrew:
- Install optional zsh packages using ‘brew install package-name’
zsh-autosuggestionszsh-completionszsh-git-promptzsh-history-substring-searchzsh-loverszsh-navigation-toolszsh-syntax-highlighting
This is how my setup looks Link to heading
- iTerm2
- Color scheme iterm2-Snazzy
- Hermit Font