linuxmac命令行美化
- 安装zsh
- mac
brew install zsh
- linux
yum install zsh -y
- mac
- 下载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
作者: JaminYe
版权声明:本文原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。