forked from Symbo-gif/Perplexity-Enigma-CLI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-shortcut.ps1
More file actions
18 lines (15 loc) · 823 Bytes
/
Copy pathcreate-shortcut.ps1
File metadata and controls
18 lines (15 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Create Desktop Shortcut for Perplexity - Enigma
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$EnigmaPath = Join-Path $ScriptDir "bin" "enigma.ps1"
$DesktopPath = [Environment]::GetFolderPath("Desktop")
$ShortcutPath = Join-Path $DesktopPath "Enigma.lnk"
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut($ShortcutPath)
# Target is PowerShell running the enigma wrapper
$Shortcut.TargetPath = "powershell.exe"
$Shortcut.Arguments = "-NoExit -ExecutionPolicy Bypass -Command `"& '$EnigmaPath'`""
$Shortcut.WorkingDirectory = $ScriptDir
$Shortcut.Description = "Perplexity - Enigma: AI-Powered Coding Assistant"
$Shortcut.Save()
Write-Host "Desktop shortcut created: $ShortcutPath" -ForegroundColor Green
Write-Host "Working directory: $ScriptDir" -ForegroundColor Cyan