brew udpate
brew install zsh
oh-my-zsh을 설치하기 위해 아래 링크의 Basic Installation 부분 확인

아래 세 가지 방식 중 택 1하여 진행
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
링크를 눌러 master.zip 파일을 다운로드 후 Oceanic-Next.itermcolors 파일을 클릭하여 테마를 추가
iTerm2 → Preferences → Profiles → Colors → Color Presets... → Oceanic-Next 을 선택하여 테마를 변경

링크를 눌러 Ubuntu Mono derivative Powerline.ttf 를 다운로드
다운로드한 파일을 실행하여 서체를 Mac에 등록
iTerm2 -> Preferences -> Profiles -> Text -> Font → Ubuntu Mono derivative Powerline 을 선택

brew install zsh-syntax-highlighting
vi ~/.zshrc
ZSH_THEME="agnoster"
Intel 기반 Mac
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Apple Silicon 기반 Mac
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zshrc
sudo apt update
sudo apt install -y zsh
root에서 동일하게 사용하고 싶다면, 여기서부터 sudo su 로그인 후 /root 경로에서 진행하면 된다.
oh-my-zsh을 설치하기 위해 아래 링크의 Basic Installation 부분 확인

아래 세 가지 방식 중 택 1하여 진행
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
vi ~/.zshrc
ZSH_THEME='agnoster'
plugins=(zsh-syntax-highlighting)
source ~/.zshrc