1. 为什么要用?
炫
2. 安装方法
zsh 安装
yum install zsh # CentOS
oh-my-zsh安装
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh # CentOS 改默认shell为zsh,可不用
3. 插件及修改
1)插件
##插件zsh-syntax-highlighting,语法高亮
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
##插件zsh-autosuggestions,提示补全
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
2)修改
vi ~/.zshrc
export TERM="xterm-256color"
ZSH_THEME="ys"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
4. myzsh
git clone https://github.com/huangjianghai174/myzsh.git