aboutsummaryrefslogtreecommitdiff
path: root/docs/applications/zsh.md
diff options
context:
space:
mode:
authorFangcat_Dev <f20091219@outlook.com>2026-08-15 07:28:58 +0000
committerFangcat_Dev <f20091219@outlook.com>2026-08-15 07:28:58 +0000
commitb90296180a70c510c00ef81106d4141e567f80ff (patch)
tree9bbf0f1d28cc9dcdcda056734242c6c86508d013 /docs/applications/zsh.md
parentMerge pull request 'docs: advanced' (#8) from Fangcat_Dev/linux-handbook:main into main (diff)
parentMerge branch 'main' into 审查修改部分越界内容 (diff)
Merge pull request '审查修改部分越界内容' (#6) from 审查修改部分越界内容 into main
Reviewed-on: https://codeberg.org/LinuxCabin/linux-handbook/pulls/6 Reviewed-by: Fangcat_Dev <f20091219@outlook.com>
Diffstat (limited to 'docs/applications/zsh.md')
-rw-r--r--docs/applications/zsh.md22
1 files changed, 18 insertions, 4 deletions
diff --git a/docs/applications/zsh.md b/docs/applications/zsh.md
index f99c5c1..bb8928a 100644
--- a/docs/applications/zsh.md
+++ b/docs/applications/zsh.md
@@ -1,5 +1,7 @@
# Zsh
+## 概述
+
Zsh是一款拥有高度自定义性的[Shell](../concepts/linux/shell.md),它具有强大的自动补全、语法高亮,并且由于Oh My Zsh的支持,拥有海量主题与插件,特别适合用于美化。
## 安装
@@ -8,13 +10,25 @@ Zsh是一款拥有高度自定义性的[Shell](../concepts/linux/shell.md),它
以下命令用于安装Zsh与部分推荐扩展。
-- Debian: `sudo apt install zsh zsh-autosuggestions zsh-syntax-highlighting`
-- Fedora: `sudo dnf install zsh zsh-autosuggestions zsh-syntax-highlighting`
-- Arch: `sudo pacman -S zsh zsh-completions zsh-autosuggestions zsh-syntax-highlighting`
+Debian系:
+```bash
+sudo apt install zsh zsh-autosuggestions zsh-syntax-highlighting
+```
+
+红帽系
+```bash
+sudo dnf install zsh zsh-autosuggestions zsh-syntax-highlighting
+```
+
+Arch系
+```bash
+sudo pacman -S zsh zsh-autosuggestions zsh-syntax-highlighting
+```
安装好后,您可以运行`chsh -s /bin/zsh`来设置Zsh为默认终端。
-部分发行版源的`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).`(默认推荐配置)。
+???+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).`(默认推荐配置)。
### Oh My Zsh