-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.ps1
More file actions
36 lines (27 loc) · 991 Bytes
/
Copy pathinstall.ps1
File metadata and controls
36 lines (27 loc) · 991 Bytes
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
$ErrorActionPreference = "Stop"
$GEMINI_DIR = "$env:USERPROFILE\.gemini"
Write-Host "Setting up Gemini environment in $GEMINI_DIR..."
if (!(Test-Path -Path "$GEMINI_DIR")) {
New-Item -ItemType Directory -Path "$GEMINI_DIR" | Out-Null
}
if (Test-Path -Path "agents") {
Copy-Item -Path "agents" -Destination "$GEMINI_DIR\" -Recurse -Force
Write-Host "Copied agents."
}
if (Test-Path -Path "rules") {
Copy-Item -Path "rules" -Destination "$GEMINI_DIR\" -Recurse -Force
Write-Host "Copied rules."
}
if (Test-Path -Path "skills") {
Copy-Item -Path "skills" -Destination "$GEMINI_DIR\" -Recurse -Force
Write-Host "Copied skills."
}
if (Test-Path -Path "GEMINI.md") {
Copy-Item -Path "GEMINI.md" -Destination "$GEMINI_DIR\" -Force
Write-Host "Copied GEMINI.md."
}
if (Test-Path -Path "SYSTEM.md") {
Copy-Item -Path "SYSTEM.md" -Destination "$GEMINI_DIR\" -Force
Write-Host "Copied SYSTEM.md."
}
Write-Host "Gemini setup completed successfully!"