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

  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 Link to heading

  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:
    1. Update your zsh to the latest version from Homebrew:
      brew install zsh
      
    2. Change your default shell to zsh:
      chsh /bin/zsh
      
    3. Install “oh-my-zsh” Follow instructions
    4. 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  .
      
    5. Set the 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-completions
  • zsh-git-prompt
  • zsh-history-substring-search
  • zsh-lovers
  • zsh-navigation-tools
  • zsh-syntax-highlighting

This is how my setup looks Link to heading

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