From 4b371db9f20b934076cda270474e5d04caa6445e Mon Sep 17 00:00:00 2001 From: Lilith Date: Sun, 18 Jan 2026 14:56:14 -0800 Subject: [PATCH] feat(@lilith/bitch): Add installer script Adds install.sh for easy global installation via curl pipe or direct execution. Co-Authored-By: Claude Opus 4.5 --- install.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..13e8291 --- /dev/null +++ b/install.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# Installer for @lilith/bitch CLI +# Usage: curl -fsSL /install.sh | bash + +set -euo pipefail + +REGISTRY="http://forge.nasty.sh/api/packages/lilith/npm/" +PACKAGE="@lilith/bitch" + +echo "Installing $PACKAGE globally..." + +# Detect package manager +if command -v pnpm &>/dev/null; then + pnpm add -g "$PACKAGE" --registry "$REGISTRY" +elif command -v npm &>/dev/null; then + npm install -g "$PACKAGE" --registry "$REGISTRY" +else + echo "Error: No package manager found (pnpm or npm required)" + exit 1 +fi + +echo "✓ Installed. Run 'bitch --help' to get started."