diff options
Diffstat (limited to '')
| -rw-r--r-- | docs/applications/shell/bash.md | 41 | ||||
| -rw-r--r-- | docs/applications/shell/fish.md (renamed from docs/applications/fish.md) | 2 | ||||
| -rw-r--r-- | docs/applications/shell/shell.md (renamed from docs/concepts/linux/shell.md) | 6 | ||||
| -rw-r--r-- | docs/applications/shell/zsh.md (renamed from docs/applications/zsh.md) | 2 |
4 files changed, 44 insertions, 7 deletions
diff --git a/docs/applications/shell/bash.md b/docs/applications/shell/bash.md new file mode 100644 index 0000000..ef11240 --- /dev/null +++ b/docs/applications/shell/bash.md @@ -0,0 +1,41 @@ +# Bash + + + +[官网](https://www.gnu.org/software/bash/) + +[官方文档](https://www.gnu.org/software/bash/manual/bash.html) + +**Bash的配置文件: `~/.bashrc`** + +## 概述 + +Bash是一个古老的[Shell](./shell.md),大多数发行版预装了Bash并作为默认Bash,Bash符合POSIX标准,这代表Bash可以运行Zsh的脚本,反之亦然。 + +## 安装 + +- Debian系列: `sudo apt install bash` +- 红帽系: `sudo dnf install bash` +- Arch系: `sudo pacman -S bash` + +## 配置 + +### Starship + +您可以使用[starship](https://starship.rs/zh-CN/)配置Bash。 + +???+ note "字体" + 我们您可以安装[Nerd Fonts字体](https://www.nerdfonts.com/)以解决字体乱码问题。 + +```bash +curl -sS https://starship.rs/install.sh | sh +``` + +在`~/.bashrc`的最后,添加以下内容: +```bash + +eval "$(starship init bash)" + +``` + +更多的配置推荐您阅读[Starship官方文档](https://starship.rs/zh-CN/guide/)。 diff --git a/docs/applications/fish.md b/docs/applications/shell/fish.md index 1b31ff1..d8e3fe1 100644 --- a/docs/applications/fish.md +++ b/docs/applications/shell/fish.md @@ -4,7 +4,7 @@ ## 概述 -Fish是一个[Shell](../concepts/linux/shell.md),它有着功能丰富,开箱即用,脚本编写简便的特点。 +Fish是一个[Shell](./shell.md),它有着功能丰富,开箱即用,脚本编写简便的特点。 **但它不兼容[POSIX标准](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html),这意味着Bash无法运行Fish的脚本,反之亦然**。 diff --git a/docs/concepts/linux/shell.md b/docs/applications/shell/shell.md index 9701057..06f26ca 100644 --- a/docs/concepts/linux/shell.md +++ b/docs/applications/shell/shell.md @@ -1,8 +1,4 @@ -# Shell - -中文: 外壳 - -## 概述 +# Shell 概述 Shell是用户与Linux内核直接对话的“窗口”,你可以将它理解为Windows的CMD(命令提示符)。用户通过在Shell输入指令达到操作系统的目的。 diff --git a/docs/applications/zsh.md b/docs/applications/shell/zsh.md index bb8928a..6d216e0 100644 --- a/docs/applications/zsh.md +++ b/docs/applications/shell/zsh.md @@ -2,7 +2,7 @@ ## 概述 -Zsh是一款拥有高度自定义性的[Shell](../concepts/linux/shell.md),它具有强大的自动补全、语法高亮,并且由于Oh My Zsh的支持,拥有海量主题与插件,特别适合用于美化。 +Zsh是一款拥有高度自定义性的[Shell](./shell.md),它具有强大的自动补全、语法高亮,并且由于Oh My Zsh的支持,拥有海量主题与插件,特别适合用于美化。 ## 安装 |
