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
This commit is contained in:
2026-03-25 13:33:32 +08:00
parent 7d29bd6562
commit bbfa5bff1c
3 changed files with 15 additions and 9 deletions
+2 -1
View File
@@ -5,8 +5,9 @@
## 快速开始
```bash
# 1. 克隆仓库
# 1. 克隆仓库SSH 或 HTTPS
git clone git@git-ssh.furtherverse.com:imbytecat/archlinux-wsl-init.git
# 或: git clone https://git-ssh.furtherverse.com/imbytecat/archlinux-wsl-init.git
cd archlinux-wsl-init
# 2. 运行 bootstrap(安装 yay 和 dcli