From 67fc622926f12da09165fa1c2e5b583078d746ec Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 25 Mar 2026 16:00:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(scripts):=20=E6=B7=BB=E5=8A=A0=20locale=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=88=B0=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 050a9b7..1254313 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -22,6 +22,11 @@ sudo cp "$CONFIG_DIR/files/etc/pacman.d/mirrorlist" /etc/pacman.d/mirrorlist sudo cp "$CONFIG_DIR/files/etc/sudoers.d/10-wheel" /etc/sudoers.d/10-wheel sudo chmod 440 /etc/sudoers.d/10-wheel +echo "==> 配置 locale..." +sudo sed -i 's/^#en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen +sudo locale-gen +echo "LANG=en_US.UTF-8" | sudo tee /etc/locale.conf > /dev/null + echo "==> 更新系统..." sudo pacman -Syu --noconfirm