Development/Free Topic
Z-shell ( zsh ) 사용하기
IMCOMKING
2020. 1. 17. 15:30
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.
- rm -rf .oh-my-zsh
- sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"