From 945b25304d6994666d3f0445e20b4190c872d402 Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Tue, 14 Jan 2025 10:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=20oh-my-zsh=20=E5=AE=89?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 05.PVE制作虚拟机模板.md | 11 +++-------- 07.PVE制作TS服务器.md | 11 +++-------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/05.PVE制作虚拟机模板.md b/05.PVE制作虚拟机模板.md index 6d48718..0f1ef62 100644 --- a/05.PVE制作虚拟机模板.md +++ b/05.PVE制作虚拟机模板.md @@ -172,15 +172,10 @@ $ sudo sync `Zsh` 是比 `Bash` 好用的 `Shell` 程序,使用 `oh-my-zsh` 进行配置。 ```bash -## 返回 home 目录 -$ cd - ## 使用清华大学镜像站安装 oh-my-zsh -$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git +$ cd && git clone --depth=1 https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git -$ cd ohmyzsh/tools - -$ REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh +$ cd ohmyzsh/tools && REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh ## 询问是否切换默认 shell,输入 Y @@ -189,7 +184,7 @@ Time to change your default shell to zsh: Do you want to change your default shell to zsh? [Y/n] y ## oh-my-zsh 安装后清理 -$ cd && rm -rvf .bash_history .zsh_history .shell.pre-oh-my-zsh ohmyzsh +$ cd && rm -rvf ohmyzsh .bash_history .zsh_history .shell.pre-oh-my-zsh ``` ### 1.5.调整内核参数 diff --git a/07.PVE制作TS服务器.md b/07.PVE制作TS服务器.md index 8ac843c..0cbcebc 100644 --- a/07.PVE制作TS服务器.md +++ b/07.PVE制作TS服务器.md @@ -146,15 +146,10 @@ $ sudo sync `Zsh` 是比 `Bash` 好用的 `Shell` 程序,使用 `oh-my-zsh` 进行配置。 ```bash -## 返回 home 目录 -$ cd - ## 使用清华大学镜像站安装 oh-my-zsh -$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git +$ cd && git clone --depth=1 https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git -$ cd ohmyzsh/tools - -$ REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh +$ cd ohmyzsh/tools && REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh ## 询问是否切换默认 shell,输入 Y @@ -163,7 +158,7 @@ Time to change your default shell to zsh: Do you want to change your default shell to zsh? [Y/n] y ## oh-my-zsh 安装后清理 -$ cd && rm -rvf .bash_history .zsh_history .shell.pre-oh-my-zsh ohmyzsh +$ cd && rm -rvf ohmyzsh .bash_history .zsh_history .shell.pre-oh-my-zsh ``` ### 1.5.调整内核模块