123456789101112131415161718192021# 安装zshsudo apt install zsh# 下载oh my zshgit clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh# 复制oh my zsh配置cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc# 设置默认终端为zshchsh -s /bin/zsh# 下载补全插件git clone git@github.com:zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions# 编辑配置文件,修改 plugins=(git zsh-autosuggestions)vim ~/.zshrc# 重启zshsource .zshrc