feat: remove wsl dependencies
All checks were successful
/ deploy_site (push) Successful in 3s

This commit is contained in:
2025-03-31 17:34:39 +09:00
parent 8aa00b9d18
commit 2b89757f2e
4 changed files with 42 additions and 147 deletions

View File

@ -1,27 +1,52 @@
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"
wsl --install --no-distribution
winget install `
--disable-interactivity `
--accept-source-agreements `
--force `
`
Microsoft.WindowsTerminal `
Hashicorp.Terraform `
Amazon.AWSCLI `
Kubernetes.kubectl `
Helm.Helm `
Derailed.k9s `
vim.vim `
Git.Git `
ahmetb.kubectx `
ahmetb.kubens `
DEVCOM.JetBrainsMonoNerdFont
winget install `
--disable-interactivity `
--accept-source-agreements `
--force `
`
OpenVPNTechnologies.OpenVPN `
DEVCOM.JetBrainsMonoNerdFont `
Microsoft.WindowsTerminal `
Microsoft.VisualStudioCode `
Zen-Team.Zen-Browser
New-Item -Path $profile -ItemType "file" -Force
@'
Set-Alias -Name kubectl -Value kubecolor
Set-Alias -Name k -Value kubectl
Set-Alias -Name kubectl -Value kubecolor
Set-Alias -Name k -Value kubectl
function ka { k apply -f $args }
function kg { k get -f $args }
function kd { k describe -f $args }
function kx { k delete -f $args }
function ti { terraform init $args }
function ta { terraform apply $args }
function taa { terraform apply --auto-approve --parallelism 100 $args }
$env:EDITOR = "code -w"
$env:PATH = "$env:PATH;C:\Program Files\Vim\vim91;"
'@ | `
Out-File -FilePath $profile
Set-Location ~/Desktop
$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
Invoke-WebRequest -useb https://releases.pmh.codes/cocktail.tar -OutFile cocktail.tar
Expand-Archive Arch.zip
Expand-Archive koishi.zip
tar -xvf cocktail.tar
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"