Files
init-win/init.ps1

28 lines
1.1 KiB
PowerShell
Raw Normal View History

2025-01-07 14:12:27 +09:00
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
2025-01-07 16:48:27 +09:00
Start-Process powershell -Verb runAs "Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0"
wsl --install --no-distribution
winget install `
--disable-interactivity `
--accept-source-agreements `
--force `
`
OpenVPNTechnologies.OpenVPN `
DEVCOM.JetBrainsMonoNerdFont `
Microsoft.WindowsTerminal `
Microsoft.VisualStudioCode `
Zen-Team.Zen-Browser
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -useb https://github.com/yuk7/ArchWSL/releases/latest/download/Arch.zip -OutFile Arch.zip
Invoke-WebRequest -useb https://releases.pmh.codes/koishi.zip -OutFile koishi.zip
Expand-Archive Arch.zip
Expand-Archive koishi.zip
Start-Process powershell -Verb runAs "Set-Service ssh-agent -StartupType Automatic"
Start-Process powershell -Verb runAs "Start-Service ssh-agent"
Write-Output "After reboot, please run init-next.ps1"