Repository navigation
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·80 lines (70 loc) · 2.46 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·80 lines (70 loc) · 2.46 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
#!/bin/bash
# Setup script for Copilot Performance Toolkit
echo "🚀 Setting up Copilot Performance Toolkit..."
# Check Python version
python_version=$(python3 --version 2>&1 | grep -o '[0-9]\+\.[0-9]\+' | head -1)
echo "✅ Python version: $python_version"
# Install dependencies
echo "📦 Installing dependencies..."
pip3 install -r requirements.txt
# Make scripts executable
echo "🔧 Making scripts executable..."
chmod +x tools/test.py
chmod +x tools/workspace_analyzer_enhanced.py
chmod +x tools/compare_folders.py
# Create convenience aliases/shortcuts
echo "🔗 Creating convenience shortcuts..."
# Create a simple launcher script
cat > run_toolkit.sh << 'EOF'
#!/bin/bash
echo "🛠️ Copilot Performance Toolkit"
echo "================================"
echo ""
echo "Available tools:"
echo "1. Memory Monitor - python3 tools/test.py"
echo "2. Workspace Analyzer - python3 tools/workspace_analyzer_enhanced.py"
echo "3. Folder Comparator - python3 tools/compare_folders.py"
echo ""
echo "Quick commands:"
echo " Monitor memory: ./run_toolkit.sh monitor"
echo " Analyze workspace: ./run_toolkit.sh analyze [path]"
echo " Compare folders: ./run_toolkit.sh compare [path1] [path2]"
echo ""
case "$1" in
monitor)
echo "🔍 Starting memory monitor..."
python3 tools/test.py --copilot-focused
;;
analyze)
path=${2:-.}
echo "📊 Analyzing workspace: $path"
python3 tools/workspace_analyzer_enhanced.py "$path"
;;
compare)
if [ -z "$2" ] || [ -z "$3" ]; then
echo "❌ Usage: ./run_toolkit.sh compare <folder1> <folder2>"
exit 1
fi
echo "🔍 Comparing folders..."
python3 tools/compare_folders.py "$2" "$3"
;;
*)
echo "For detailed usage, see README.md or individual tool help:"
echo " python3 tools/test.py --help"
echo " python3 tools/workspace_analyzer_enhanced.py --help"
;;
esac
EOF
chmod +x run_toolkit.sh
echo ""
echo "✅ Setup complete!"
echo ""
echo "🎯 Quick start:"
echo " ./run_toolkit.sh monitor # Monitor VS Code memory"
echo " ./run_toolkit.sh analyze # Analyze current directory"
echo " ./run_toolkit.sh analyze /path # Analyze specific path"
echo ""
echo "📚 Documentation available in docs/ directory"
echo "🔬 Research findings available in research/ directory"
echo ""
echo "Ready to optimize your Copilot performance! 🚀"