forked from heyitsnoah/claudesidian
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·104 lines (89 loc) · 2.59 KB
/
install.sh
File metadata and controls
executable file
·104 lines (89 loc) · 2.59 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/bash
echo "🚀 Claudesidian Setup Script"
echo "=========================="
echo ""
# Check for required tools
check_command() {
if ! command -v "$1" &> /dev/null; then
echo "❌ $1 is not installed"
return 1
else
echo "✅ $1 is installed"
return 0
fi
}
echo "Checking required tools..."
echo ""
# Check essentials
check_command "git"
GIT_OK=$?
check_command "node"
NODE_OK=$?
check_command "pnpm"
PNPM_OK=$?
# Check optional tools
echo ""
echo "Checking optional tools..."
check_command "yt-dlp" || echo " → Install with: brew install yt-dlp (for YouTube transcripts)"
check_command "jq" || echo " → Install with: brew install jq (for JSON processing)"
check_command "rg" || echo " → Install with: brew install ripgrep (for better search)"
echo ""
# Install pnpm if needed
if [ $PNPM_OK -ne 0 ]; then
echo "📦 Installing pnpm..."
npm install -g pnpm
echo "✅ pnpm installed"
fi
# Install dependencies
echo "📦 Installing dependencies..."
pnpm install
# Create necessary directories
echo ""
echo "📁 Creating folder structure..."
mkdir -p 00_Inbox 01_Projects 02_Areas 03_Resources 04_Archive 05_Attachments/Organized 06_Metadata/{Reference,Templates}
echo "✅ Folders created"
# Git setup
if [ $GIT_OK -eq 0 ]; then
if [ ! -d ".git" ]; then
echo ""
echo "🔧 Initializing git repository..."
git init
git add .
git commit -m "Initial vault setup"
echo "✅ Git repository initialized"
fi
fi
# Gemini API setup
echo ""
echo "🔮 Gemini Vision Setup (Optional)"
echo "================================="
echo ""
echo "To enable image and document analysis:"
echo "1. Get your free API key from: https://aistudio.google.com/apikey"
echo "2. Add to your shell profile (~/.zshrc or ~/.bashrc):"
echo ""
echo " export GEMINI_API_KEY='your-key-here'"
echo ""
echo "3. Reload your shell: source ~/.zshrc"
echo "4. Test with: pnpm test-gemini"
echo ""
# Obsidian check
echo "📝 Obsidian Setup"
echo "================"
if [ -d "/Applications/Obsidian.app" ] || [ -d "$HOME/.local/share/applications/obsidian.desktop" ]; then
echo "✅ Obsidian detected"
echo " Open this folder as a vault in Obsidian"
else
echo "📥 Download Obsidian from: https://obsidian.md"
echo " Then open this folder as a vault"
fi
echo ""
echo "🎉 Setup Complete!"
echo "================="
echo ""
echo "Next steps:"
echo "1. Start Claude Code in this directory: claude"
echo "2. Read the Welcome note in 00_Inbox/"
echo "3. Try: /thinking-partner (in Claude Code)"
echo ""
echo "Happy note-taking! 🧠✨"