Commit Graph

11 Commits

Author SHA1 Message Date
imbytecat 6641a75fc9 重构脚本:重命名 root-setup 为 wsl-init 并修复关键问题
- 重命名 root-setup.sh 为 wsl-init.sh,明确 WSL 专属
- 添加 WSL 环境检查,防止在非 WSL 环境误执行
- 添加 sudoers 配置,修复 install.sh 无法使用 sudo 的问题
- 去掉 wsl-init 中的 -Syu,避免重复升级
- 备份已有 /etc/wsl.conf 再覆盖
- install.sh 克隆逻辑改为安全检测,避免误删已有仓库
- README 区分 WSL 首次启动和普通 Arch 两条路径
2026-03-25 14:42:59 +08:00
imbytecat bfb4d5b3d0 将脚本移至 scripts/ 目录,保持仓库根目录整洁 2026-03-25 14:37:00 +08:00
imbytecat b899e4cb9f 添加 root-setup.sh 脚本用于 WSL 首次初始化
- 自动安装 sudo、创建用户、配置免密 sudo
- 写入 /etc/wsl.conf 设置默认用户
- 整合 WSL.md 内容到脚本中,删除原文档
- 更新 README 为两阶段安装流程
2026-03-25 14:26:57 +08:00
imbytecat 580b57eee4 简化提示:dcli sync 无需 cd 到配置目录 2026-03-25 14:11:35 +08:00
imbytecat 8d1f6254cc 重构项目结构:扁平化配置并支持 curl 一键安装
- 将 arch-config/ 内容移至仓库根目录
- setup.sh 重命名为 install.sh
- 脚本改为自动 clone 仓库到 ~/.config/arch-config
- 新增 pacman -Syu 系统更新步骤
- README 简化为 curl 一行安装
2026-03-25 14:08:41 +08:00
imbytecat 08c3452c1a 调整脚本命名并更新文档说明
- 将 bootstrap.sh 重命名为 setup.sh,避免与 dcli init 语义混淆
- README 标题改为通用配置仓库定位
- 更新快速开始命令为 setup.sh
2026-03-25 13:57:14 +08:00
imbytecat 791e2f515f Update repository name and URLs to archlinux-config 2026-03-25 13:51:31 +08:00
imbytecat 264526320e 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
2026-03-25 13:39:59 +08:00
imbytecat bbfa5bff1c Improve bootstrap robustness and add safety checks
- Fix /tmp/yay conflict with rm -rf before clone
- Use script directory instead of current directory
- Add pipefail to error handling
- Add command existence checks for mise/zoxide in .zshrc
- Add HTTPS clone option in README
2026-03-25 13:33:32 +08:00
imbytecat 3d1ec60d6f Add dcli to base module and make sync manual 2026-03-25 13:27:26 +08:00
imbytecat 6863ca7d7d 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
2026-03-25 13:01:51 +08:00