文章目录 安装 zsh安装 ohmyzsh安装插件.zshrc 配置终端效果 安装 zsh yum install -y git curl # 安装zsh yum install -y zsh # 查看已经安装shell cat /etc/shells # 切换shell chsh -s /bin/zsh 安装 ohmyzsh 国内镜像 sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)" 安装插件 # 高亮插件 git clone https://gitee.com/Annihilater/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting # 命令自动补全插件 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions .zshrc 配置 vim ~/.zshrc # 开启自动更新 DISABLE_UPDATE_PROMPT=true # 配置主题 afowler ZSH_THEME="robbyrussell" # 配置插件 plugins=( git zsh-syntax-highlighting zsh-autosuggestions ) 配置生效 source ~/.zshrc 终端效果