상상 너머 그 무언가...

iTerm2 에 Oh My Zsh 설치 및 테마, Plugin 설정 본문

개인적인(Personals)/맥북 정보(Mac Tip)

iTerm2 에 Oh My Zsh 설치 및 테마, Plugin 설정

Clack 2021. 1. 12. 04:17

유투브로 개발관련 영상을 보다보니

맥의 터미널 화면인데 색상도 이쁘고 git 상태표시도 추가로 나오고 하는게 이쁘고 편해 보여서

여기저기 찾아보왔다.

 

iTerm2에 Zsh(Z Shell) 설치하고 Oh My Zsh 까지 설치하는 부분은 아래 사이트에서 참고 했으며
ooeunz.tistory.com/21

 

[개발 환경] iTerm2로 터미널 커스텀하기

ZSH Z Shell이란 기본적으로 사용하는 터미널의 확장된 기능을 가지고 있는 애플리케이션이다. 무엇보다 장점은...... 이쁘다는 거...^^ 필자가 사용하는 커스텀 형태이다. agnoster테마와 sanzzy테마를

ooeunz.tistory.com


Oh My Zsh 설치가 권한설정 등으로 정상 실행이 안되는 부분에 대해서는 아래 사이트를 참고했다.

goax.tistory.com/4

 

Oh My Zsh 설치 & Plugins

macOS Catalina부터 기본 Shell로 zsh를 사용합니다. 개인적으로 bash만 사용해서 zsh가 어색하기도 하지만 한번 zsh에 적응해보고자 합니다. Installation curl을 이용하여 Oh My Zsh를 설치합니다. sh -c "$(cu..

goax.tistory.com

 

나는 .zshrc 파일을 아래 내용처럼 수정을 했다

( theme 설정, oh my zsh 폴더 권한설정, Syntax Highlight 적용 )

 

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="agnoster"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

........... 생략 ...........

# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)

ZSH_DISABLE_COMPFIX="true"

source $ZSH/oh-my-zsh.sh
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# User configuration