diff options
| author | hf_trixie <HFhaofan@outlook.com> | 2026-08-15 03:01:32 +0000 |
|---|---|---|
| committer | hf_trixie <HFhaofan@outlook.com> | 2026-08-15 03:01:32 +0000 |
| commit | 651633b2d950d26109ef642e92114089375ed5b2 (patch) | |
| tree | b7895d46720490cbf70f118c1ab56aefe152ac30 /docs/applications/zsh.md | |
| parent | 审查并修改_1 (diff) | |
审查并修改内容_2
Diffstat (limited to 'docs/applications/zsh.md')
| -rw-r--r-- | docs/applications/zsh.md | 22 |
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 |
