From c5728b54f3c7172ecfbfe6b8a4d10e5feafa3eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E5=88=80=E7=8B=90=E7=8B=B8?= Date: Sun, 7 Aug 2022 07:52:27 +0000 Subject: [PATCH] =?UTF-8?q?update=205.PVE=E9=85=8D=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E8=99=9A=E6=8B=9F=E6=9C=BA.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 5.PVE配置模板虚拟机.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 +``` + +