This repository was archived by the owner on May 9, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·58 lines (49 loc) · 1.53 KB
/
install.sh
File metadata and controls
executable file
·58 lines (49 loc) · 1.53 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
# unga-bunga installer
# bash <(curl -fsSL https://raw.githubusercontent.com/balabommablock-cpu/unga-bunga/main/install.sh)
set -euo pipefail
REPO="https://github.com/balabommablock-cpu/unga-bunga"
CLAUDE_HOME="${HOME}/.claude"
SKILL_DIR="${CLAUDE_HOME}/skills"
TOOL_DIR="${CLAUDE_HOME}/unga-bunga"
echo ""
echo " UNGA BUNGA"
echo " Token optimizer for Claude Code"
echo ""
# Create directories
mkdir -p "$SKILL_DIR" "$TOOL_DIR"
# Download skill
echo " Installing skill..."
if command -v curl &>/dev/null; then
curl -fsSL "${REPO}/raw/main/SKILL.md" -o "${SKILL_DIR}/unga-bunga.md"
elif command -v wget &>/dev/null; then
wget -q "${REPO}/raw/main/SKILL.md" -O "${SKILL_DIR}/unga-bunga.md"
else
echo "Error: curl or wget required"
exit 1
fi
# Download tools
echo " Installing tools..."
for tool in compress.py audit.sh; do
if command -v curl &>/dev/null; then
curl -fsSL "${REPO}/raw/main/tools/${tool}" -o "${TOOL_DIR}/${tool}"
else
wget -q "${REPO}/raw/main/tools/${tool}" -O "${TOOL_DIR}/${tool}"
fi
done
chmod +x "${TOOL_DIR}/audit.sh"
echo ""
echo " Installed:"
echo " Skill → ${SKILL_DIR}/unga-bunga.md"
echo " Tools → ${TOOL_DIR}/"
echo ""
echo " Usage:"
echo " Audit your setup: ${TOOL_DIR}/audit.sh"
echo " Compress CLAUDE.md: python3 ${TOOL_DIR}/compress.py ./CLAUDE.md"
echo ""
# Run audit if in a project
if [[ -f "CLAUDE.md" ]] || [[ -f "${CLAUDE_HOME}/CLAUDE.md" ]]; then
echo " Running audit on current setup..."
echo ""
bash "${TOOL_DIR}/audit.sh" "$(pwd)"
fi