From 5bee02b567819cb2ea438ba36f0d4a34035a1d32 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Wed, 19 Oct 2022 23:57:51 +0800 Subject: [PATCH] =?UTF-8?q?blog:=20=E8=A1=A5=E5=85=85=E9=81=97=E6=BC=8F?= =?UTF-8?q?=E7=9A=84=E5=86=85=E5=AE=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/blog/install-and-setup-arch-linux.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/data/blog/install-and-setup-arch-linux.md b/data/blog/install-and-setup-arch-linux.md index 8ea3d23..085011c 100644 --- a/data/blog/install-and-setup-arch-linux.md +++ b/data/blog/install-and-setup-arch-linux.md @@ -57,7 +57,7 @@ ssh-keygen -R '[20.20.20.20]:20000' 设置主机名: ```bash -sudo hostnamectl set-hostname arch.example.com +hostnamectl set-hostname arch.example.com ``` 启用 pacman 并行下载: @@ -164,6 +164,24 @@ setopt INC_APPEND_HISTORY_TIME 详细配置参考:[Better zsh history | SoberKoder](https://www.soberkoder.com/better-zsh-history/) 文档:[zsh: 16 Options](https://zsh.sourceforge.io/Doc/Release/Options.html) +然后进入到 `zsh` 中,执行一次 `source ~/.zshrc`: + +```shell +zsh + +source ~/.zshrc +``` + +设置 Zsh 为默认的 shell 程序: + +```bash +# 列出所有已安装的 shell 程序 +chsh -l +# 从上面的结果中找到 zsh 的完整路径 +# 我的是 /bin/zsh +chsh -s /bin/zsh +``` + ### Docker 安装 Docker 和 Docker Compose 也很简单: