linuxmac命令行美化

  1. 安装zsh
    • mac brew install zsh
    • linux yum install zsh -y
  2. 下载oh-my-zshwget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
  3. 加权限chmod +x install.sh
  4. 执行脚本./install
  5. 高亮插件下载git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  6. 自动提示脚本下载git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  7. 配置vim ~/.zshrc
    ZSH_THEME="ys"
    plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
    
  8. 重载配置文件source ~/.zshrc
posted @ 2021-10-16 23:15  JaminYe  阅读(71)  评论(0编辑  收藏  举报