본문 바로가기
Study/Development

Oh-my-zsh 및 플러그인 설치

by SeulKom 2025. 7. 9.

(1) Oh-my-zsh 설치

https://ohmyz.sh/#install

 

Oh My Zsh - a delightful & open source framework for Zsh

Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with hundresd of helpful functions, plugins, themes, and a few things that make you shout... OH MY ZSH!

ohmyz.sh

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

 

(2) Theme 변경

vi ~/.zshrc

.zshrc 파일에서 ZSH_THEME 값을 변경 (default는 rubbyrussell 이며, https://github.com/ohmyzsh/ohmyzsh/wiki/Themes 에서 원하는 테마를 선택

ZSH_THEME="robbyrussell"

 

(3) 플러그인 설치

Syntax Highlighting (https://github.com/zsh-users/zsh-syntax-highlighting)

 

GitHub - zsh-users/zsh-syntax-highlighting: Fish shell like syntax highlighting for Zsh.

Fish shell like syntax highlighting for Zsh. Contribute to zsh-users/zsh-syntax-highlighting development by creating an account on GitHub.

github.com

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

 

 

Auto Suggestion (https://github.com/zsh-users/zsh-autosuggestions?tab=readme-ov-file )

 

GitHub - zsh-users/zsh-autosuggestions: Fish-like autosuggestions for zsh

Fish-like autosuggestions for zsh. Contribute to zsh-users/zsh-autosuggestions development by creating an account on GitHub.

github.com

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

 

 

플러그인 추가하기 (~/.zshrc)

plugins=(
    git
    zsh-syntax-highlighting
    zsh-autosuggestions
)

 

 

 

 

(참고) vi에서도 syntax highlight 기능이 있음

vi ~/.vimrc

 

.vimrc 파일을 열어 다음과 같이 입력

syntax on