From bc32c98e502ed2b81fa6d9b3742e3c3fb98b8012 Mon Sep 17 00:00:00 2001 From: Chaos Date: Thu, 11 Jun 2026 21:49:02 +0800 Subject: [PATCH] docs: add one-click install commands to README --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 48035b3..8996e89 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,18 @@ Cross-machine synchronization for opencode AI configuration. -## Quick Start +## One-Click Install ### Windows (PowerShell) ```powershell -git clone $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 ~/.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