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
This commit is contained in:
2026-03-25 13:39:59 +08:00
parent bbfa5bff1c
commit 264526320e
2 changed files with 11 additions and 8 deletions
+8 -5
View File
@@ -5,9 +5,8 @@
## 快速开始 ## 快速开始
```bash ```bash
# 1. 克隆仓库SSH 或 HTTPS # 1. 克隆仓库
git clone git@git-ssh.furtherverse.com:imbytecat/archlinux-wsl-init.git git clone https://git-ssh.furtherverse.com/imbytecat/archlinux-wsl-init.git
# 或: git clone https://git-ssh.furtherverse.com/imbytecat/archlinux-wsl-init.git
cd archlinux-wsl-init cd archlinux-wsl-init
# 2. 运行 bootstrap(安装 yay 和 dcli # 2. 运行 bootstrap(安装 yay 和 dcli
@@ -30,9 +29,13 @@ dcli sync
## 更新配置 ## 更新配置
```bash ```bash
# 修改配置后同步 # 拉取最新配置
cd ~/archlinux-wsl-init # 或你的 clone 目录
git pull
# 应用更新
dcli sync dcli sync
# 更新系统 # 更新系统
dcli update dcli update
``` ```
+3 -3
View File
@@ -15,9 +15,9 @@ fi
echo "==> 安装 dcli..." echo "==> 安装 dcli..."
yay -S --needed --noconfirm dcli-arch-git yay -S --needed --noconfirm dcli-arch-git
echo "==> 复制配置..." echo "==> 链接配置..."
mkdir -p ~/.config/arch-config rm -rf ~/.config/arch-config
cp -r "$SCRIPT_DIR/arch-config"/* ~/.config/arch-config/ ln -sf "$SCRIPT_DIR/arch-config" ~/.config/arch-config
echo "" echo ""
echo "✓ Bootstrap 完成!" echo "✓ Bootstrap 完成!"