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
# 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
```
+3 -3
View File
@@ -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 完成!"