-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·62 lines (56 loc) · 1.41 KB
/
install.sh
File metadata and controls
executable file
·62 lines (56 loc) · 1.41 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
59
60
61
62
#!/bin/bash
# CCPlugins Installer for Mac/Linux
set -e
COMMANDS_DIR="$HOME/.claude/commands"
mkdir -p "$COMMANDS_DIR"
# Download commands from GitHub
REPO_URL="https://raw.githubusercontent.com/brennercruvinel/CCPlugins/main/commands"
COMMANDS=(
"cleanproject.md"
"commit.md"
"contributing.md"
"create-todos.md"
"docs.md"
"explain-like-senior.md"
"find-todos.md"
"fix-imports.md"
"fix-todos.md"
"format.md"
"implement.md"
"make-it-pretty.md"
"predict-issues.md"
"remove-comments.md"
"review.md"
"scaffold.md"
"security-scan.md"
"session-end.md"
"session-start.md"
"test.md"
"todos-to-issues.md"
"undo.md"
"understand.md"
"refactor.md"
)
# Check for existing commands
EXISTING=0
for cmd in "${COMMANDS[@]}"; do
if [ -f "$COMMANDS_DIR/$cmd" ]; then
((EXISTING++))
fi
done
if [ $EXISTING -gt 0 ]; then
echo "[WARNING] Found $EXISTING existing commands"
read -p "Overwrite existing commands? (y/N): " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "[CANCELLED] Installation cancelled."
echo "Tip: Use uninstall script first to remove old commands."
exit 0
fi
fi
echo "Downloading commands..."
for cmd in "${COMMANDS[@]}"; do
curl -sSL "$REPO_URL/$cmd" -o "$COMMANDS_DIR/$cmd"
done
echo "CCPlugins installed to $COMMANDS_DIR"
echo "Type / in Claude Code to see available commands"