본문 바로가기
Development/Free Topic

Z-shell ( zsh ) 사용하기

by IMCOMKING 2020. 1. 17.

zsh ( z-shell )

zsh은 bash shell에서는 제공하지 않는 사소하지만 정말 편리하고 우아한 기능들을 제공하는 shell이다.

zsh 설치과정

1. sudo apt-get install zsh
2. oh-my-zsh 설치 sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
3. zsh-syntax-highlighting

 git clone <https://github.com/zsh-users/zsh-syntax-highlighting.git>
 echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
 
 source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

문제 해결

/home/savitsky/.zshrc:3: command not found: ^M

remove autocrlf = true from ~/.gitconfig and install again.


댓글