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:
Executable
+24
@@ -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 "✓ 完成!所有配置已应用"
|
||||
Reference in New Issue
Block a user