- 安装zsh
- mac
brew install zsh - linux
yum install zsh -y - 下载oh-my-zsh
wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh - 加权限
chmod +x install.sh - 执行脚本
./install - 高亮插件下载
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting - 自动提示脚本下载
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions - 配置
vim ~/.zshrc ZSH_THEME="ys"
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
- 重载配置文件
source ~/.zshrc
|