1 minute read

Setup oh-my-zsh for macOS to improve your terminal experience

Install Homebrew

  1. Run this command in terminal
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. It will ask you to install macOS developer tools. Accept the terms and proceed.
  2. It will take a while to finish installing homebrew.
  3. Make sure you Homebrew installation succeeded by running following command
brew --version

Install oh-my-zsh

  1. Install iterm2 to replace standard terminal
brew install iterm
  1. Install custom font to enhance your terminal experience Few font recommendations
  2. Go to iterm2 preferences -> Profiles -> Text to select your new font.
  3. Install ‘oh-my-zsh’.
    • Update your zsh to latest version from Homebrew
      brew install zsh
      
    • Change you default shell to zsh
      chsh /bin/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
      
  4. 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

Screenshot

  1. iTerm2
  2. Color scheme iterm2-Snazzy
  3. Hermit Font