安装zsh和ohmyzsh
yum install -y zsh
yum install git
chsh -s /bin/zsh
curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh | sh
安装自动补全插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
编辑~/.zshrc
文件,修改plugins=(git zsh-autosuggestions)
,插件名称之间要有空格。