Initial commit: dcli-based Arch Linux WSL configuration

- Bootstrap script for yay and dcli installation
- Declarative package management with modules (base, zsh, dev-tools)
- China mirror configuration (Tsinghua)
- Zsh with oh-my-zsh, autosuggestions, syntax-highlighting
- Dev tools: mise, zoxide, fzf, ripgrep, fd, bat
This commit is contained in:
2026-03-25 13:01:51 +08:00
commit 6863ca7d7d
9 changed files with 123 additions and 0 deletions
Executable
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
set -e
echo "==> 安装 yay (唯一手动步骤)..."
if ! command -v yay &> /dev/null; then
sudo pacman -S --needed --noconfirm base-devel git
cd /tmp
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirm
cd ~
fi
echo "==> 安装 dcli..."
yay -S --needed --noconfirm dcli-arch-git
echo "==> 初始化 dcli 配置..."
mkdir -p ~/.config/arch-config
cp -r ./arch-config/* ~/.config/arch-config/
echo "==> 运行 dcli sync..."
dcli sync
echo "✓ 完成!所有配置已应用"