Skip to content

Commit 54a4876

Browse files
committed
chore: install script
Signed-off-by: Zhiqiang ZHOU <im@strrl.dev>
1 parent ce932b3 commit 54a4876

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.claude/settings.local.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"allow": [
44
"WebFetch(domain:pkg.go.dev)",
55
"Bash(make:*)",
6-
"Bash(./out/shell-now:*)"
6+
"Bash(./out/shell-now:*)",
7+
"WebFetch(domain:github.com)"
78
],
89
"deny": []
910
}

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,17 @@ docker run cr.strrl.dev/strrl/shell-now:latest
3737

3838
**Note:** The Docker version runs in an isolated container environment separate from your host system. Use this for demos or when you want a sandboxed shell experience.
3939

40-
### Manual Installation
40+
### Quick Install
4141

42-
Coming soon: prebuilt binaries for macOS, Linux, Windows, ARM64
42+
```bash
43+
# Auto-detect OS and architecture
44+
OS=$(uname -s); ARCH=$(uname -m)
45+
case $OS in Linux) OS="Linux";; Darwin) OS="Darwin";; esac
46+
case $ARCH in x86_64|amd64) ARCH="x86_64";; arm64|aarch64) ARCH="arm64";; esac
47+
curl -LO https://github.com/STRRL/shell-now/releases/latest/download/shell-now_${OS}_${ARCH}.tar.gz
48+
tar -xzf shell-now_${OS}_${ARCH}.tar.gz
49+
sudo install shell-now /usr/local/bin/shell-now && rm shell-now shell-now_${OS}_${ARCH}.tar.gz
50+
```
4351

4452
## 📚 Why?
4553

0 commit comments

Comments
 (0)