aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authora42-good <sh64641@outlook.com>2026-08-15 14:46:14 +0000
committera42-good <sh64641@outlook.com>2026-08-15 14:46:14 +0000
commit6f2bbb24198c2546adf0946dde8ecbc8310d0593 (patch)
tree9f84735e65d131fa894e597b61c1dbe157e24cb2
parentfix: workflow checkout (diff)
docs: 完成了关于bash的介绍
-rw-r--r--docs/applications/bash.md45
-rw-r--r--mkdocs.yml1
2 files changed, 46 insertions, 0 deletions
diff --git a/docs/applications/bash.md b/docs/applications/bash.md
new file mode 100644
index 0000000..453b1c9
--- /dev/null
+++ b/docs/applications/bash.md
@@ -0,0 +1,45 @@
+# 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](https://starship.rs/zh-CN/)配置Bash
+
+### 安装starship
+
+**我们建议您安装[Nerd Fonts字体](https://www.nerdfonts.com/)解决字体乱码问题**
+
+```bash
+
+curl -sS https://starship.rs/install.sh | sh
+
+```
+
+### 设置Bash使用Starship
+
+在`~/.bashrc`的最后,添加以下内容:
+
+```bash
+
+eval "$(starship init bash)"
+
+```
+
+更多的配置推荐您阅读[starship官方文档](https://starship.rs/zh-CN/guide/)
diff --git a/mkdocs.yml b/mkdocs.yml
index 58be04a..73bf743 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -178,6 +178,7 @@ nav:
- applications/emacs.md
- applications/vim.md
- applications/zsh.md
+ - applications/bash.md
- applications/fish.md
- applications/ssh.md
- applications/git.md