美化Linux终端-一键安装oh-my-zsh脚本

48次阅读

共计 1008 个字符,预计需要花费 3 分钟才能阅读完成。

包含:1、oh-my-zsh2、语法高亮插件 3、自动补全插件 #!/bin/bashset -e# 1。安装 Gitsudo yum install git -y# 2。安装 zshsudo yum install zsh -y# 3。下载 oh-my-zsh 安装脚本 wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh# 4。执行 oh-my-zsh 安装脚本 sh install.sh <<EOFYEOF# 5。安装 zeta-zsh-themebash -c "$(curl -fsSL https://raw.githubusercontent.com/skylerlee/zeta-zsh-theme/master/scripts/install.sh)"# 6。安装 zsh-autosuggestions 插件 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions# 7。安装 zsh-syntax-highlighting 插件 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git# 8。将 zsh-syntax-highlighting 插件添加到。zshrc 文件 echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc# 9。刷新当前 Shell 的配置 source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh# 10。切换到用户的根目录 cd# 11。修改。zshrc 文件中的 plugins 配置 sed -i \’s/plugins=(git)/plugins=(git zsh-autosuggestions)/\’ .zshrc# 12。执行 zshzsh 复制代码 WZ-Software 2023-07-08 11:08 2 有没有效果展示图和视频?想看看效果再装 898198 2023-07-08 11:09 3 帮顶,收藏了,有空试试

正文完
 0