CentOS 可根据自己的系统修改zsh_offline_install.sh
在使用前,需要在联网环境中下载ohmyzsh
、zsh-autosuggestions
、zsh-syntax-highlighting
三个项目文件夹,并放置在此文件夹中
git clone https://github.com/ohmyzsh/ohmyzsh
git clone https://github.com/zsh-users/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting
- 脚本文件添加执行权限
chmod +x zsh_offline_install.sh
- 执行脚本文件
./zsh_offline_install.sh
- 如果需要更新zsh-autosuggestions或者zsh-syntax-highlighting,可以到对应的插件目录下通过
git pull
更新插件
cd ~/.oh-my-zsh/custom/plugins
cd zsh-autosuggestions
git pull
- oh-my-zsh:https://github.com/ohmyzsh/ohmyzsh
- zsh-autosuggestions:https://github.com/zsh-users/zsh-autosuggestions
- zsh-syntax-highlighting:https://github.com/zsh-users/zsh-syntax-highlighting
- install-oh-my-zsh.sh:https://m24y.com/index.php/2021/11/24/oh-my-zsh/