DEV Community

Chakri  Thongtae
Chakri Thongtae

Posted on • Edited on

Setup iterm2 for mac

  1. download Xcode

  2. install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Enter fullscreen mode Exit fullscreen mode

and add homebrew to zsh profile

echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc

restart terminal

now you can using the homebrew

  1. install iterm2 with homebrew
brew install --cask iterm2
Enter fullscreen mode Exit fullscreen mode

install iterm2

now you can use iterm2

  1. install ohmyzsh with curl

ohmyzsh repo

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

install ohmyzsh

  1. install zsh theme powerlevel10k

powerlevel10k repo

  • install recomended font
  • install powerlevel10k with ohmyzsh

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

Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc.

and do these step

install recomended font

press y

Quit iterm2 and reopen it

Quit iterm2 and reopen it

icon

press y

lock

arrow

icon

rainbow

press 3

unicode

press 1

24 hour

press 2

angled

press 1

Blur

blur front

press 2
1line

press 1
compact
press 1

many icon

press2

transient

press n

verbose rec

press 1

apply change
press y

now your terminal look like this

term

make command code . work with vscode

Open the Command Palette via ⌘⇧P and type shell command to find the Shell Command:

shell command

  1. add theme to item2

iterm2 color schemes

Brogrammer color

I'm using Brogrammer color scheme

change color preset iterm2

color preset

Bro

  1. add zsh plugins

before doing this you have to

zsh-autosuggestion install.md
install zsh-autosuggestion with oh-my-zsh

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

zsh-syntax-highlighting install.md
install zsh-syntax-highlighting with oh-my-zsh

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

after run both command you need to add this line to zsh profile
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

plugin

Top comments (0)