-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·42 lines (35 loc) · 1.15 KB
/
install.sh
File metadata and controls
executable file
·42 lines (35 loc) · 1.15 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
#!/bin/bash
# Claude Hooks Manager Installation Script
echo "Installing Claude Hooks Manager..."
# Create hooks directory if it doesn't exist
mkdir -p ~/.claude/hooks
# Copy all Python hook files
echo "Copying hook files..."
cp hooks/*.py ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.py
# Copy documentation
cp README.md ~/.claude/hooks/
# Check if settings.json exists
if [ -f ~/.claude/settings.json ]; then
echo ""
echo "⚠️ Warning: ~/.claude/settings.json already exists"
echo "Please manually merge the hooks configuration from settings.example.json"
echo ""
echo "You can view the example configuration with:"
echo "cat settings.example.json"
else
# Copy settings.json
echo "Creating settings.json..."
cp settings.example.json ~/.claude/settings.json
fi
echo ""
echo "✅ Installation complete!"
echo ""
echo "Hooks installed to: ~/.claude/hooks/"
echo ""
echo "Next steps:"
echo "1. Restart Claude for the hooks to take effect"
echo "2. Review ~/.claude/settings.json to ensure hooks are configured"
echo "3. Customize hooks as needed for your workflow"
echo ""
echo "For more information, see: ~/.claude/hooks/README.md"