feat: enhance Windows initialization script with WSL installation and additional software
All checks were successful
/ deploy_site (push) Successful in 3s
All checks were successful
/ deploy_site (push) Successful in 3s
This commit is contained in:
9
init.ps1
9
init.ps1
@ -1,11 +1,14 @@
|
|||||||
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
|
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-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 `
|
winget install `
|
||||||
--disable-interactivity `
|
--disable-interactivity `
|
||||||
--accept-source-agreements `
|
--accept-source-agreements `
|
||||||
--force `
|
--force `
|
||||||
`
|
`
|
||||||
|
Microsoft.WindowsTerminal `
|
||||||
Mozilla.Firefox `
|
Mozilla.Firefox `
|
||||||
Microsoft.VisualStudioCode `
|
Microsoft.VisualStudioCode `
|
||||||
Hashicorp.Terraform `
|
Hashicorp.Terraform `
|
||||||
@ -19,6 +22,7 @@ winget install `
|
|||||||
ahmetb.kubectx `
|
ahmetb.kubectx `
|
||||||
ahmetb.kubens `
|
ahmetb.kubens `
|
||||||
Docker.DockerDesktop `
|
Docker.DockerDesktop `
|
||||||
|
Zen-Team.Zen-Browser `
|
||||||
DEVCOM.JetBrainsMonoNerdFont
|
DEVCOM.JetBrainsMonoNerdFont
|
||||||
|
|
||||||
New-Item -Path $profile -ItemType "file" -Force
|
New-Item -Path $profile -ItemType "file" -Force
|
||||||
@ -44,7 +48,7 @@ $env:PATH = "$env:PATH;C:\Program Files\Vim\vim91;"
|
|||||||
'@ | `
|
'@ | `
|
||||||
Out-File -FilePath $profile
|
Out-File -FilePath $profile
|
||||||
|
|
||||||
cd ~/Desktop
|
Set-Location ~/Desktop
|
||||||
|
|
||||||
$ProgressPreference = 'SilentlyContinue'
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
Invoke-WebRequest -useb https://releases.pmh.codes/cocktail.tar -OutFile cocktail.tar
|
Invoke-WebRequest -useb https://releases.pmh.codes/cocktail.tar -OutFile cocktail.tar
|
||||||
@ -52,3 +56,6 @@ Invoke-WebRequest -useb https://releases.pmh.codes/koishi.zip -OutFile koishi.zi
|
|||||||
|
|
||||||
tar -xvf cocktail.tar
|
tar -xvf cocktail.tar
|
||||||
Expand-Archive koishi.zip
|
Expand-Archive koishi.zip
|
||||||
|
|
||||||
|
Set-Service ssh-agent -StartupType Automatic
|
||||||
|
Start-Service ssh-agent
|
||||||
|
Reference in New Issue
Block a user