zsh

安装 zsh

1
sudo apt-get install zsh

oh-my-zsh:

摘自:
https://github.com/robbyrussell/oh-my-zsh

1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

命令高亮

摘自:
https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md

1
2
3
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

可以设置默认sh

1
sudo chsh -s /bin/zsh