-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·31 lines (27 loc) · 1.26 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·31 lines (27 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
# One-shot installer for the Claude Statusline shared customizations (non-plugin path).
# Usage:
# curl -fsSL https://raw.githubusercontent.com/Lxcardoza993/Claude-statusline/main/install.sh | bash
# # or clone and run: ./install.sh
#
# For the richer path (auto health-check hook + /claude-statusline commands + updates),
# install as a Claude Code plugin instead — see README.md.
set -euo pipefail
REPO="Lxcardoza993/Claude-statusline"
BRANCH="main"
TMP="$(mktemp -d)"
trap 'rm -rf "$TMP"' EXIT
echo "==> Cloning $REPO..."
if ! command -v git >/dev/null 2>&1; then
echo "git not found. Install git, or use the plugin path (see README)." >&2
exit 1
fi
git clone --depth 1 -b "$BRANCH" "https://github.com/$REPO.git" "$TMP/repo" 2>/dev/null \
|| git clone --depth 1 "https://github.com/$REPO.git" "$TMP/repo"
echo "==> Running installer (copies statusline.py + wires settings.json)..."
python3 "$TMP/repo/claude-statusline/scripts/install.py"
echo
echo "==> Done. Restart Claude Code for the env vars to take effect."
echo " Tip: for an auto health-check hook and /claude-statusline commands, install as a plugin:"
echo " /plugin marketplace add Lxcardoza993/Claude-statusline"
echo " /plugin install claude-statusline@claude-statusline-market"