- zsh 설치
sudo apt-get install zsh
2. 기본 shell 변경
chsh -s /usr/bin/zsh $USER
3. oh – my -zsh 설치
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
4. ~/.zshrc 설정
vi ~/.zshrc
theme 수정 agnoster
5. Plugin 설정
아래와 같이 plugins 에 필요한 플러그인을 추가한다. 아래는 글쓴이가 사용하는 설정이다.
plugins=( git sudo common-aliases command-not-found zsh-autosuggestions zsh-syntax-highlighting )
다시 로그인 하면 적용이 된다.
2019-04-06 추가 zsh-autosuggestions zsh-syntax-highlighting의 경우 별도 설치가 필요 하다 아래의 명령어로 설치
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
Code language: PHP (php)