본문 바로가기

개발일지와 메모사이

ZSH(Z Shell) 사용하기

설치

sudo apt install zsh

※설치 경로 확인법 : which zsh (e.g., /usr/bin/zsh)

 

 

기본 쉘 설정

chsh -s $(which zsh)

 

 

oh my zsh 설치하기

https://github.com/ohmyzsh/ohmyzsh/wiki

 

Home

🙃 A delightful community-driven (with 2,100+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, pyth...

github.com

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

 

 

테마 변경하기

https://github.com/ohmyzsh/ohmyzsh/wiki/Themes

 

Themes

🙃 A delightful community-driven (with 2,100+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, pyth...

github.com

~/.zshrc 파일을 열어

ZSH_THEME="robbyrussell"

robbyrussell이라고 되어 있는 기본값을 위 테마 페이지에서 골라 변경한다.(딸기카레는 커맨드간 구분이 편한 af-magic 사용)

ZSH_THEME="af-magic"

저장 후 zsh를 실행하면 변경된다.