-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·44 lines (37 loc) · 1.08 KB
/
setup.sh
File metadata and controls
executable file
·44 lines (37 loc) · 1.08 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
#!/bin/bash
set -e
echo "ResearchVault — initial setup"
echo "=============================="
echo ""
# Check if settings.local.json already exists
if [ -f ".claude/settings.local.json" ]; then
echo "Warning: .claude/settings.local.json already exists."
read -p "Overwrite? (y/N) " -n 1 -r
echo ""
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Aborted."
exit 0
fi
fi
# Auto-detect home path
HOME_PATH="$HOME"
echo "Home path detected: $HOME_PATH"
echo ""
# Ask for Zotero library ID
echo "Enter your Zotero library ID."
echo "Find it by running: zotero-mcp setup-info"
echo "Or log in at zotero.org → Settings → Feeds/API (look for 'Your userID')."
echo ""
read -p "Zotero library ID: " LIBRARY_ID
if [ -z "$LIBRARY_ID" ]; then
echo "Error: library ID cannot be empty."
exit 1
fi
# Generate settings.local.json from template
sed "s|/YOUR-PATH|$HOME_PATH|g; s|YOUR-LIBRARY-ID|$LIBRARY_ID|g" \
.claude/settings.local.json.template > .claude/settings.local.json
echo ""
echo "Done: .claude/settings.local.json created."
echo ""
echo "You can now start Claude Code:"
echo " claude"