Files
init-win/init.ps1

28 lines
1.0 KiB
PowerShell

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
Start-Process powershell -Verb runAs "Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0"
Start-Job -ScriptBlock {
wsl --install --no-distribution
}
winget install `
--disable-interactivity `
--accept-source-agreements `
--force `
`
DEVCOM.JetBrainsMonoNerdFont `
Microsoft.WindowsTerminal `
Microsoft.VisualStudioCode `
$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"