安装zsh
安装
centOS
yum install zsh
1
安装Oh My Zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 或者可以通过wget安装
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
1
2
3
2
3
修改变量
vim ~/.zshrc
# add
plugins=(git
zsh-syntax-highlighting
zsh-autosuggestions)
source ~/.zshrc
1
2
3
4
5
6
7
2
3
4
5
6
7
安装语法高亮Plugin zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
1
安装代码补全Plugin zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
1