mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-09-01 06:22:52 +08:00
简化 oh-my-zsh 安装
This commit is contained in:
+3
-8
@@ -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
@@ -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.调整内核模块
|
||||||
|
|||||||
Reference in New Issue
Block a user