Oh My Zsh is an open-source, community-driven framework for managing your zsh configuration.

Sounds boring. Let’s try again.

Oh My Zsh will not make you a 10x developer…but you may feel like one.

Please note the installation procedure is meant for macOS.

Table of Contents

  1. Oh My Zsh
    1. Install zsh using Homebrew
    2. Install Oh My Zsh
  2. iTerm2
    1. Install iTerm2
    2. Set zsh as the default terminal environment
  3. Powerlevel10k
    1. Install Powerlevel10k
    2. Configure Powerlevel10k Theme
  4. Plugins (Optional, Good to have!)
    1. Clone/Install plugins
    2. Activate the plugins

Oh My Zsh

Install zsh using Homebrew

If you haven’t installed homebrew yet, install it by pasting the below lines in your terminal.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Now, Install zsh using the following command:

brew install zsh


Install Oh My Zsh

Install oh-my-zsh using the following command:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"


Install iTerm2

brew cask install iterm2

Or, Download and install iterm2 from the official website - iterm2. Then, In Finder drag and drop the iTerm Application file into the Applications folder.

Set zsh as the default terminal environment

  • Go to iTerm2 preferences.
  • Head to Profiles -> General.
  • Paste /bin/zsh in the Command textbox and restart iTerm2.


Installation Problems?
You might need to modify your PATH in ~/.zshrc if you’re not able to find some commands after switching to oh-my-zsh.


Install Powerlevel10k

  • Install Powerlevel10k using the following command

    git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
  • Then you need to enable it, change the value of ZSH_THEME to following in ~/.zshrc file :


Configure Powerlevel10k Theme

  • Restart iTerm2. On Restart Powerlevel10k Configurator will show up, choose preferred UI options. Finish the wizard.
  • Make sure iTerm2 → Preferences → Profiles → Text has set Font to MesloLGS NF.


Plugins (Optional, Good to have!)

Clone/Install plugins

  • zsh-syntax-highlighting - It enables highlighting of commands whilst they are typed at a zsh prompt into an interactive terminal. This helps in reviewing commands before running them, particularly in catching syntax errors.

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  • zsh-autosuggestions - It suggests commands as you type based on history and completions.

    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Activate the plugins

  • In ~/.zshrcfile replace the line starting with plugins=to below line.
    plugins=( git zsh-syntax-highlighting zsh-autosuggestions)

Some more official plugins - ohmyzsh plugins

That’s it!

This is how my Terminal looks - Let me know if you have any questions. ;)

My Mackbook CLI
My Mackbook CLI