1. 安装zsh
1
sudo apt install git zsh -y 
  1. 安装oh-my-zsh
    码云地址
1
https://gitee.com/mirrors/oh-my-zsh

执行其中的tools/install.sh

如果无法clone github代码可以尝试把ip写入host

  1. 安装自动补全
1
git clone https://gitee.com/mirrors/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  1. 修改配置 ~/.zshrc
1
plugins=(git zsh-autosuggestions)