Install zsh

Open terminal and paste.

brew install zsh

We need you “oh-my-zsh”

Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes and a few things that make you shout…

“Oh My ZSH!”

Install oh-my-zsh

The oh-my-zsh will be replace default terminal with zsh automatically when you installed.

Manage Plugins

In this case I want to enable plugin ‘docker’ on my zsh, so I’ll run this command

vi ~/.zshrc

and type “/plugin” (without quotes) press enter, type ‘i’ character and insert the plugin that you want to add.

...# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/# Example format: plugins=(rails git textmate ruby lighthouse)# Add wisely, as too many plugins slow down shell startup.plugins=( git)

In this case, I’ll add docker plugin, just add “docker” to our parentheses.

...# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/# Example format: plugins=(rails git textmate ruby lighthouse)# Add wisely, as too many plugins slow down shell startup.plugins=( git docker)

After you satisfied, press ‘Esc’ and type ‘:wq’ which means you save a file and exit immediately. And restart iTerm2.