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.调整内核模块