aboutsummaryrefslogtreecommitdiff
path: root/docs/applications/shell
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/applications/shell/bash.md4
-rw-r--r--docs/applications/shell/fish.md10
-rw-r--r--docs/applications/shell/shell.md6
-rw-r--r--docs/applications/shell/zsh.md4
4 files changed, 12 insertions, 12 deletions
diff --git a/docs/applications/shell/bash.md b/docs/applications/shell/bash.md
index 839a95a..43af8f0 100644
--- a/docs/applications/shell/bash.md
+++ b/docs/applications/shell/bash.md
@@ -10,7 +10,7 @@
## 概述
-Bash是一个古老的[Shell](./shell.md),大多数发行版预装了Bash并作为默认Bash,Bash符合POSIX标准,这代表Bash可以运行Zsh的脚本,反之亦然。
+Bash是一个古老的[Shell](./shell.md),大多数发行版预装了Bash并作为默认 Shell,Bash符合POSIX标准,因此大多数遵循 POSIX 标准的脚本在两者之间可以通用。
## 安装
@@ -25,7 +25,7 @@ Bash是一个古老的[Shell](./shell.md),大多数发行版预装了Bash并ä½
您可以使用[starship](https://starship.rs/zh-CN/)配置Bash。
???+ note "字体"
- 我们您可以安装[Nerd Fonts字体](https://www.nerdfonts.com/)以解决字体乱码问题。
+ 您可以安装[Nerd Fonts字体](https://www.nerdfonts.com/)以解决字体乱码问题。
```bash
curl -sS https://starship.rs/install.sh | sh
diff --git a/docs/applications/shell/fish.md b/docs/applications/shell/fish.md
index c3db7b4..e03a7b2 100644
--- a/docs/applications/shell/fish.md
+++ b/docs/applications/shell/fish.md
@@ -40,7 +40,7 @@ chsh -s "$(command -v fish)"
当您在Fish输入命令时,您可以按Tab键列出所有选项,您可以使用方向键选择选项,使用回车键补全
-使用`ctrl-a`或`ctrl-e`移动到命令的头部或尾部
+使用`ctrl-a`或`ctrl-e`将光标移动到行首或行尾
使用`ctrl-k`删除光标后的所有内容
@@ -50,16 +50,16 @@ chsh -s "$(command -v fish)"
使用`alt-u`将光标后面的所有字母大写
-**Fish默认使用Emacs快捷键,您可以使用`fish_vi_key_bindings`切换到vi模式,使用`fish_default_key_bindings`,切换回去**。
+**Fish默认使用Emacs快捷键,您可以使用`fish_vi_key_bindings`切换到vi模式,再用 `fish_default_key_bindings` 切换回默认模式**。
## 配置
-您可以在config-fish添加以下文本关闭Fish的欢迎信息:
+您可以在 `~/.config/fish/config.fish` 中添加以下内容关闭Fish的欢迎信息:
```bash
set -U fish_greeting
```
-您可以使用以下语法设置别名
+您可以用 `alias` 定义别名(执行时展开),或用 `abbr` 定义缩写(输入时提示展开):
```bash
alias 别名="原本的命令"
abbr -a 别名="原本的命令"
@@ -67,7 +67,7 @@ abbr -a 别名="原本的命令"
## 关于更多
-受限于我们的专门性,建议选择这些更专门的教程或文档学习
+受限于篇幅,建议通过以下更专业的教程或文档继续学习
- [官方文档](https://fishshell.com/docs/current/index.html)
- [Fish语言教程](https://fishshell.com/docs/current/tutorial.html)
diff --git a/docs/applications/shell/shell.md b/docs/applications/shell/shell.md
index 590c71e..ed52e58 100644
--- a/docs/applications/shell/shell.md
+++ b/docs/applications/shell/shell.md
@@ -1,6 +1,6 @@
# Shell 概述
-Shell是用户与Linux内核直接对话的“窗口”,你可以将它理解为Windows的CMD(命令提示符)。用户通过在Shell输入指令达到操作系统的目的。
+Shell是用户与Linux内核直接对话的“窗口”,你可以将它理解为Windows的CMD(命令提示符)。用户在 Shell 中输入指令,从而让操作系统执行相应操作。
大多数Shell的配置文件包括环境变量、主题等内容,且位于用户目录下,为以`.`开头的隐藏文件,如`.bashrc`(Bash)、`.zshrc`(Zsh)。
@@ -8,6 +8,6 @@ Shell是用户与Linux内核直接对话的“窗口”,你可以将它理解ä
终端是Shell的图形化呈现。尽管有Ptyxis、Konsole等等终端,但其所调用、运行的依然是诸如Bash等等的Shell。
???+ example "常见的Linux Shell"
- - Bash: 大多数Linux发行版预装的Shell,兼容性强,支持广
+ - Bash: 大多数Linux发行版预装的Shell,兼容性强,生态支持广泛
- Zsh: 自定义性强,有强大的自动补全功能,并兼容Bash语法
- - Fish: 用户友好、人性化设计、易配置 \ No newline at end of file
+ - Fish: 用户友好、设计人性化、易于配置 \ No newline at end of file
diff --git a/docs/applications/shell/zsh.md b/docs/applications/shell/zsh.md
index 6a652a1..494adc5 100644
--- a/docs/applications/shell/zsh.md
+++ b/docs/applications/shell/zsh.md
@@ -25,7 +25,7 @@ Arch系
sudo pacman -S zsh zsh-autosuggestions zsh-syntax-highlighting
```
-安装好后,您可以运行`chsh -s /bin/zsh`来设置Zsh为默认终端。
+安装好后,您可以运行`chsh -s /bin/zsh`来把 Zsh 设为默认 Shell。
???+info "注意"
部分发行版源的`zsh`包,在初次运行`zsh`时,会询问您想要如何配置`.zshrc`(Zsh的配置文件)。我们建议您输入2来选择`(2) Populate your ~/.zshrc with the configuration recommended by the system administrator and exit (you will need to edit the file by hand, if so desired).`(默认推荐配置)。
@@ -46,7 +46,7 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/too
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
```
!!! warning "网络问题"
- 该脚本与 https://install.ohmyz.sh 的脚本本质相同,均需要从Github克隆Zsh仓库,因此可能需要较好的网络环境。
+ 该脚本与 https://install.ohmyz.sh 的脚本本质相同,均需要从 GitHub 克隆 Oh My Zsh 仓库,因此可能需要较好的网络环境。
#### 手动安装