Add dcli to base module and make sync manual

This commit is contained in:
2026-03-25 13:27:26 +08:00
parent 4da90cca47
commit 3d1ec60d6f
3 changed files with 21 additions and 7 deletions
+7 -1
View File
@@ -9,9 +9,15 @@
git clone git@git-ssh.furtherverse.com:imbytecat/archlinux-wsl-init.git
cd archlinux-wsl-init
# 2. 运行 bootstrap仅首次
# 2. 运行 bootstrap安装 yay 和 dcli
chmod +x bootstrap.sh
./bootstrap.sh
# 3. 检查配置(可选)
cat ~/.config/arch-config/hosts/wsl.yaml
# 4. 应用配置
dcli sync
```
## 配置说明
+6
View File
@@ -5,3 +5,9 @@ packages:
- wget
- vim
- neovim
aur_packages:
- dcli-arch-git
aur_packages:
- dcli-arch-git
+8 -6
View File
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
echo "==> 安装 yay (唯一手动步骤)..."
echo "==> 安装 yay..."
if ! command -v yay &> /dev/null; then
sudo pacman -S --needed --noconfirm base-devel git
cd /tmp
@@ -14,11 +14,13 @@ fi
echo "==> 安装 dcli..."
yay -S --needed --noconfirm dcli-arch-git
echo "==> 初始化 dcli 配置..."
echo "==> 复制配置..."
mkdir -p ~/.config/arch-config
cp -r ./arch-config/* ~/.config/arch-config/
echo "==> 运行 dcli sync..."
dcli sync
echo "✓ 完成!所有配置已应用"
echo ""
echo "✓ Bootstrap 完成!"
echo ""
echo "下一步:"
echo " 1. 检查配置: ~/.config/arch-config/"
echo " 2. 应用配置: dcli sync"