docs: add one-click install commands to README

This commit is contained in:
2026-06-11 21:49:02 +08:00
parent c39549fbb5
commit bc32c98e50
+15 -3
View File
@@ -2,12 +2,18 @@
Cross-machine synchronization for opencode AI configuration.
## Quick Start
## One-Click Install
### Windows (PowerShell)
```powershell
git clone <your-repo-url> $env:USERPROFILE\opencode-config
iwr -useb https://git.nomsg.cn/chaos/opencode-config/raw/branch/master/install.ps1 | iex
```
Or manually:
```powershell
git clone https://git.nomsg.cn/chaos/opencode-config.git $env:USERPROFILE\opencode-config
cd $env:USERPROFILE\opencode-config
.\install.ps1
```
@@ -15,7 +21,13 @@ cd $env:USERPROFILE\opencode-config
### macOS / Linux
```bash
git clone <your-repo-url> ~/.config/opencode-config
curl -fsSL https://git.nomsg.cn/chaos/opencode-config/raw/branch/master/install.sh | bash
```
Or manually:
```bash
git clone https://git.nomsg.cn/chaos/opencode-config.git ~/.config/opencode-config
cd ~/.config/opencode-config
chmod +x install.sh
./install.sh