首先执行以下命令安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
安装高亮插件 zsh-syntax-highlighting
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
安装提示插件 zsh-autosuggestions
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
然后打开zsh配置文件
vim ~/.zshrc
启用插件
找到plugins=(git)
修改为启用插件plugins=(git z zsh-syntax-highlighting zsh-autosuggestions)
更换主题 修改 ZSH_THEME="(这里选择主题名)"
保存退出
执行source ~/.zshrc
完成美化