Setting up iTerm2 & zsh with useful plugins

Customizing MacOS Terminal

Install iTerm2

brew install iterm2

Install zsh

brew install zsh

Install oh-my-zsh

sh -c "$(curl -fsSL"

Change the zsh theme in ~/.zshrc.


Run source ~/.zshrc, if you run into this warning

[oh-my-zsh] To fix your permissions you can do so by disabling
[oh-my-zsh] the write permission of "group" and "others" and making sure that the
[oh-my-zsh] owner of these directories is either root or your current user.
[oh-my-zsh] The following command may help:
[oh-my-zsh] compaudit | xargs chmod g-w,o-w

Simply run what’s given as a hint.

compaudit | xargs chmod g-w,o-w

Installing fonts

git clone --depth=1
cd fonts
cd ..
rm -rf fonts

Go to iTerm2 Preferences (cmd + ,) > Profiles > Colors to change color preset

Go to iTerm2 Preferences (cmd + ,) > Profiles > Text to change font.

Useful Plugins



brew install zsh-autosuggestions

This is the output of the installation. Simply follow along with the given instructions.

To activate the autosuggestions, add the following at the end of your .zshrc:source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zshYou will also need to force reload of your .zshrc:source ~/.zshrc



brew install autojump

Installing autojump will give you instructions like below. Simply add what’s given at the end of your .zshrc

Add the following line to your ~/.bash_profile or ~/.zshrc file:
[ -f /usr/local/etc/profile.d/ ] && . /usr/local/etc/profile.d/


Run these commands in order to clone and apply to zsh

cd ~/.oh-my-zsh/custom/pluginsgit clone "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrcsource ~/.zshrc

In the end, the bottom of .zshrc will look like this after enabling the plugins. Change USER_NAME to your user name.

source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
[ -f /usr/local/etc/profile.d/ ] && . /usr/local/etc/profile.d/
source /Users/USER_NAME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh



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