From 264526320eec13e9dd379e5aec119cde6d05352a Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 25 Mar 2026 13:39:59 +0800 Subject: [PATCH] Use symlink instead of copy for config sync - Change to HTTPS clone (public access) - Symlink arch-config to ~/.config/arch-config - Config updates via git pull + dcli sync --- README.md | 13 ++++++++----- bootstrap.sh | 6 +++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 882b4ce..938be6e 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,8 @@ ## 快速开始 ```bash -# 1. 克隆仓库(SSH 或 HTTPS) -git clone git@git-ssh.furtherverse.com:imbytecat/archlinux-wsl-init.git -# 或: git clone https://git-ssh.furtherverse.com/imbytecat/archlinux-wsl-init.git +# 1. 克隆仓库 +git clone https://git-ssh.furtherverse.com/imbytecat/archlinux-wsl-init.git cd archlinux-wsl-init # 2. 运行 bootstrap(安装 yay 和 dcli) @@ -30,9 +29,13 @@ dcli sync ## 更新配置 ```bash -# 修改配置后同步 +# 拉取最新配置 +cd ~/archlinux-wsl-init # 或你的 clone 目录 +git pull + +# 应用更新 dcli sync -# 更新系统 +# 更新系统包 dcli update ``` diff --git a/bootstrap.sh b/bootstrap.sh index 2ec3006..37cff0d 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -15,9 +15,9 @@ fi echo "==> 安装 dcli..." yay -S --needed --noconfirm dcli-arch-git -echo "==> 复制配置..." -mkdir -p ~/.config/arch-config -cp -r "$SCRIPT_DIR/arch-config"/* ~/.config/arch-config/ +echo "==> 链接配置..." +rm -rf ~/.config/arch-config +ln -sf "$SCRIPT_DIR/arch-config" ~/.config/arch-config echo "" echo "✓ Bootstrap 完成!"