Make installation groovier

This commit is contained in:
Daniel Newman 2026-05-15 13:02:50 -04:00
commit 6c127496d6
2 changed files with 33 additions and 4 deletions

View file

@ -28,12 +28,12 @@ total that hits your bill.
## Install ## Install
```bash ```bash
brew tap dtnewman/burn https://github.com/dtnewman/burn_baby_burn curl -fsSL https://raw.githubusercontent.com/dtnewman/burn-baby-burn/main/install.sh | bash
brew install burn
``` ```
Needs [Claude Code](https://docs.claude.com/claude-code) authenticated on Drops `burn` into `~/.local/bin` — no sudo, no Homebrew tap. Needs
your `PATH` and `jq` (brew pulls it in). [Claude Code](https://docs.claude.com/claude-code) authenticated on your
`PATH` and `jq` (`brew install jq`).
--- ---

29
install.sh Executable file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env bash
# Install `burn` to ~/.local/bin (no sudo required).
set -euo pipefail
REPO="dtnewman/burn-baby-burn"
SRC="https://raw.githubusercontent.com/${REPO}/main/bin/burn"
DEST_DIR="${HOME}/.local/bin"
DEST="${DEST_DIR}/burn"
mkdir -p "$DEST_DIR"
curl -fsSL "$SRC" -o "$DEST"
chmod +x "$DEST"
echo "✅ installed burn → $DEST"
case ":${PATH}:" in
*":${DEST_DIR}:"*)
echo "🔥 ready to go: run 'burn 10000' to torch some tokens."
;;
*)
echo
echo "⚠️ $DEST_DIR is not on your PATH."
echo " add this line to your shell rc (~/.zshrc, ~/.bashrc, etc):"
echo
echo " export PATH=\"\$HOME/.local/bin:\$PATH\""
echo
echo " then reload your shell and run 'burn 10000'."
;;
esac