diff --git a/5.PVE配置模板虚拟机.md b/5.PVE配置模板虚拟机.md index 125fae1..2e60904 100644 --- a/5.PVE配置模板虚拟机.md +++ b/5.PVE配置模板虚拟机.md @@ -376,3 +376,25 @@ sudo crontab -e 0 5 * * * snap restart adguard-home 0 6 8,24 * * /usr/sbin/reboot ``` + +### 1.9.配置ZSH + +`Zsh` 是比 `Bash` 好用的 `Shell` 程序,使用 `oh-my-zsh` 进行配置: + +```bash +## 返回 home 目录 +cd + +## 使用 curl 安装 oh-my-zsh +sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + +## 或者使用 wget 安装 oh-my-zsh +sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" + +## 询问是否切换默认 shell,输入 Y +## 示例输出 +Time to change your default shell to zsh: +Do you want to change your default shell to zsh? [Y/n] y +``` + +