29 lines
1.1 KiB
PowerShell
29 lines
1.1 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 {
|
|
winget install `
|
|
--disable-interactivity `
|
|
--accept-source-agreements `
|
|
--force `
|
|
`
|
|
DEVCOM.JetBrainsMonoNerdFont `
|
|
Microsoft.WindowsTerminal `
|
|
Microsoft.VisualStudioCode `
|
|
Zen-Team.Zen-Browser
|
|
}
|
|
|
|
wsl --install --no-distribution
|
|
|
|
$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"
|