zsh 설치하기

murkgom·2020년 5월 7일
0

zsh?

  • 쉘의 능력 강화!

shell? bash?

  • 유닉스의 shell = bash

설치

sudo apt install zsh

//18.04에서...
sudo sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
// 20.04에서...
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
  • zsh와 oh-my-zsh 템플릿 설치

기본쉘 변경

sudo chsh -s /bin/zsh [호스트명 ex) ubuntu]
  • chsh : change shell
  • -s : short? 한 줄로 처리하도록 해주는 옵션

highlighting

install

sudo apt install zsh-syntax-highlighting

setting

sudo vim ~/.zshrc
  • 하단에 문구 추가
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

0개의 댓글