iTerm2 + zsh + oh-my-zsh The Most Power Full Terminal on macOS

Ayuth Mangmesap
Ayuth’s Story
3 min readJan 11, 2018

--

https://github.com/MartinSeeler/iterm2-material-design/blob/master/img/screen-mock-2.jpg?raw=true

Are you struggling in the default terminal?

Do you want your terminal to look like an image above?

If you want your terminal to look like in the picture above. Come on, you’re the person who must worth reading this blog.

Install Homebrew

https://www.iterm2.com/img/logo2x.jpg
  1. Open terminal and paste.

Download iTerm2

Why we must replace default macOS Terminal to iTerm2 ?

  1. Go to download page https://www.iterm2.com/downloads.html
  2. After downloaded, drag and drop file into our Application folder.

Or if you just type (require homebrew installed)

Install zsh

  1. Open terminal and paste.

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.

  1. Open terminal and paste.

Decorate Our iTerm2 With Material Design Colours

https://github.com/MartinSeeler/iterm2-material-design/blob/master/img/screen-mock-1.jpg

1. Open terminal and paste.

2. Open iTerm2 that we already downloaded at the first section

3. Go to iTerm2 > Preferences > Profiles > Colors Tab

4. Click Color Presets… at the bottom right

5. Click Import…

6. Select the material-design-colors.itermcolors file

7. Select the material-design-colors from Load Presets…

iTerm2 with Dracular theme ref: https://draculatheme.com/assets/img/screenshots/iterm.png

Dracula theme is also good click see more.

Manage Plugins

Plugin wiki page: https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins

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

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

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

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

Add An Alias (Permanent Alias)

If I go type ‘dkps’ it will be execute ‘docker ps’

--

--