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

Ayuth Mangmesap
Jan 11, 2018 · 3 min read
Image for post
Image for post
https://github.com/MartinSeeler/iterm2-material-design/blob/master/img/screen-mock-2.jpg?raw=true

Install Homebrew

Image for post
Image for post
https://www.iterm2.com/img/logo2x.jpg
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Download iTerm2

brew cask install iterm2

Install zsh

brew install zsh

We need you “oh-my-zsh”

Image for post
Image for post

Install oh-my-zsh

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

Decorate Our iTerm2 With Material Design Colours

Image for post
Image for post
https://github.com/MartinSeeler/iterm2-material-design/blob/master/img/screen-mock-1.jpg
$ cd Downloads
$ curl -O https://raw.githubusercontent.com/MartinSeeler/iterm2-material-design/master/material-design-colors.itermcolors
Image for post
Image for post
iTerm2 with Dracular theme ref: https://draculatheme.com/assets/img/screenshots/iterm.png

Manage Plugins

vi ~/.zshrc
.
.
.
# 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
)
.
.
.
# 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
)

Add An Alias (Permanent Alias)

vi ~/.zshrc.
.
.
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias dkps="docker ps"
alias dkst="docker stats"
alias dkpsa="docker ps -a"
alias dkimgs="docker images"
alias dkcpup="docker-compose up -d"
alias dkcpdown="docker-compose down"
alias dkcpstart="docker-compose start"
alias dkcpstop="docker-compose stop"

Ayuth’s Story

ヽ༼ ° ͟ ͜ʖ ͡° ༽ノ

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store