简化 oh-my-zsh 安装

This commit is contained in:
CallMeR
2025-01-14 10:42:58 +08:00
parent 82066a8a21
commit 945b25304d
2 changed files with 6 additions and 16 deletions
+3 -8
View File
@@ -172,15 +172,10 @@ $ sudo sync
`Zsh` 是比 `Bash` 好用的 `Shell` 程序,使用 `oh-my-zsh` 进行配置。 `Zsh` 是比 `Bash` 好用的 `Shell` 程序,使用 `oh-my-zsh` 进行配置。
```bash ```bash
## 返回 home 目录
$ cd
## 使用清华大学镜像站安装 oh-my-zsh ## 使用清华大学镜像站安装 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 $ cd ohmyzsh/tools && REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh
$ REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh
## 询问是否切换默认 shell,输入 Y ## 询问是否切换默认 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 Do you want to change your default shell to zsh? [Y/n] y
## oh-my-zsh 安装后清理 ## 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.调整内核参数 ### 1.5.调整内核参数
+3 -8
View File
@@ -146,15 +146,10 @@ $ sudo sync
`Zsh` 是比 `Bash` 好用的 `Shell` 程序,使用 `oh-my-zsh` 进行配置。 `Zsh` 是比 `Bash` 好用的 `Shell` 程序,使用 `oh-my-zsh` 进行配置。
```bash ```bash
## 返回 home 目录
$ cd
## 使用清华大学镜像站安装 oh-my-zsh ## 使用清华大学镜像站安装 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 $ cd ohmyzsh/tools && REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh
$ REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh
## 询问是否切换默认 shell,输入 Y ## 询问是否切换默认 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 Do you want to change your default shell to zsh? [Y/n] y
## oh-my-zsh 安装后清理 ## 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.调整内核模块 ### 1.5.调整内核模块