Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
June 23, 2022 02:20 am GMT

Set up Terminal on Mac 2022

Setting up new Terminal on Mac

  • iTerm2
  • Homebrew
  • Git
  • Zsh (Z Shell) and ohmyzsh
  • ohmyzsh Themes
  • ohmyzsh Plugins
  • iTerms2 Color Schemes

1. iTerm2

Download at

Set out Status Bar Component Menu
iTerm2 > Preferences > Profiles > Session > Status bar enabled > Configure Status Bar

Check out other features at

2. Homebrew

Download at
or run this in terminal

/bin/bash -c "$(curl -fsSL"

It will automatically install Developer tools if not available in your system.
When installation is done, run the two commands from the "==> Next steps:" section found in output of your terminal
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/lana/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

3. Git

Mac already comes with git installed
git --version
=> git version 2.30.1 (Apple Git-130)
Get the latest version of git by installing it with Homebrew

brew install git

git --version
=> git version 2.36.1
Double-check your git global configurations
git config --global --list
If your and are not set, run the following to set your git global configurations
git config --global "<youremail>"
git config --global "<yourname>"

4. zsh and ohmyzsh


Mac already comes with zsh installed and set as a default
Check what shell is set as a default
echo $SHELL
=> /bin/zsh
If the return is not the above, install zsh with Homebrew

brew install zsh

zsh --version
=> zsh 5.8.1 (x86_64-apple-darwin21.0)
Then Change the default shell in Terminal on Mac or run the following
chsh -s $(which zsh)


Install ohmyzsh, the following will run the install script from Github ohmyzsh's

sh -c "$(curl -fsSL"


5. ohmyzsh Themes

Pick a theme for your ohmyzsh look, and there are many available at Github: ohmyzsh Themes wiki page
What's the best theme for Oh My Zsh?
Reddit: What are some of the best Zsh themes

The most popular theme is PowerLevel10k

Install PowerLevel10K theme

git clone --depth=1 ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

open ~/.zshrc
find a line ZSH_THEME=" and update it

Change PowerLevel10k configurations
p10k configure
Change iTerm2 font (reddit reference)

  • Quit iTerm2 - iTerm2 > Quit iTerm2 or press Q.
  • Start iTerm2.
  • Click iTerm2 > Preferences > Profiles > Text.
  • If you have multiple profiles, on the left, click the one you want to change.
  • Adjust Font on the right.

6. ohmyzsh Plugins

A list of all ohmyzsh plugins is available at Github ohmyzsh/plugins
or run ls ~/.oh-my-zsh/plugins
To see which plugins are enabled, run
echo $plugins

There are also lots of custom plugins built within zsh-users community. Install the following custom plugins:

git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions

open ~/.zshrc
find the line source "$ZSH/"
add the following before that line

  • Activate custom plugins

open ~/.zshrc
find a line plugins=( and update it

plugins=(git zsh-autosuggestions zsh-syntax-highlightingzsh-completions )

7. iTerm Color Schemes

Github mbadolato/iTerm2-Color-Schemes
Import color schemes into iTerms 2

cd Downloadswget

You may need to install wget and unzip Homebrew formulae
brew install wget
brew install unzip
Import .itemcolors items found at ~/Downloads/iTerm2-Color-Schemes-master/schemes
iTerm2 > Preferences > Profile > Colors > Color Presets > Import

To delete them later, follow this Bulk remove iTerm2 color schemes guide.


Original Link:

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To