aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangcatChina <f20091219@outlook.com>2026-08-17 06:31:02 +0000
committerFangcatChina <f20091219@outlook.com>2026-08-17 06:31:02 +0000
commit75ed2bb67d5fa6f5339ca90cf4057cc9220b2351 (patch)
treec2224cf36c3353d04f19d864818cbc54b21064a7
parentMerge branch 'main' into main (diff)
parentdocs: 完成了关于bash的介绍 (diff)
Merge pull request 'docs: 完成了关于bash的介绍' (#12) from a42-good/linux-handbook-docs:docs-bash into main
-rw-r--r--docs/applications/shell/bash.md41
-rw-r--r--mkdocs.yml1
2 files changed, 42 insertions, 0 deletions
diff --git a/docs/applications/shell/bash.md b/docs/applications/shell/bash.md
new file mode 100644
index 0000000..69fefe2
--- /dev/null
+++ b/docs/applications/shell/bash.md
@@ -0,0 +1,41 @@
+# Bash
+
+![bash](https://tiswww.case.edu/php/chet/img/bash-logo-web.png)
+
+[官网](https://www.gnu.org/software/bash/)
+
+[官方文档](https://www.gnu.org/software/bash/manual/bash.html)
+
+**Bash的配置文件: `~/.bashrc`**
+
+## 概述
+
+Bash是一个古老的[Shell](../../concepts/linux/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/mkdocs.yml b/mkdocs.yml
index c8a4d08..abb4d13 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -203,6 +203,7 @@ nav:
- AI:
- applications/ai/openclaw.md
- Shell:
+ - applications/shell/bash.md
- applications/shell/zsh.md
- applications/shell/fish.md
- 进阶: