重构项目结构:扁平化配置并支持 curl 一键安装

- 将 arch-config/ 内容移至仓库根目录
- setup.sh 重命名为 install.sh
- 脚本改为自动 clone 仓库到 ~/.config/arch-config
- 新增 pacman -Syu 系统更新步骤
- README 简化为 curl 一行安装
This commit is contained in:
2026-03-25 14:08:41 +08:00
parent 08c3452c1a
commit 8d1f6254cc
10 changed files with 45 additions and 47 deletions
+9 -20
View File
@@ -5,37 +5,26 @@
## 快速开始
```bash
# 1. 克隆仓库
git clone https://git.furtherverse.com/imbytecat/archlinux-config.git
cd archlinux-config
curl -fsSL https://git.furtherverse.com/imbytecat/archlinux-config/raw/branch/main/install.sh | bash
```
# 2. 运行 setup(安装 yay 和 dcli
chmod +x setup.sh
./setup.sh
安装完成后:
# 3. 检查配置(可选)
cat ~/.config/arch-config/hosts/wsl.yaml
# 4. 应用配置
```bash
cd ~/.config/arch-config
dcli sync
```
## 配置说明
- `arch-config/hosts/wsl.yaml` - WSL 配置
- `arch-config/modules/` - 模块化包管理
- `arch-config/files/` - 配置文件(自动同步)
- `hosts/wsl.yaml` - WSL 配置
- `modules/` - 模块化包管理
- `files/` - 配置文件(自动同步)
## 更新配置
```bash
# 拉取最新配置
cd ~/archlinux-config # 或你的 clone 目录
cd ~/.config/arch-config
git pull
# 应用更新
dcli sync
# 更新系统包
dcli update
```