Files
init-win/init.ps1

62 lines
1.8 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
2025-01-07 16:48:27 +09:00
winget install `
--disable-interactivity `
--accept-source-agreements `
--force `
`
Microsoft.WindowsTerminal `
2025-01-07 16:48:27 +09:00
Mozilla.Firefox `
2025-01-07 14:12:27 +09:00
Microsoft.VisualStudioCode `
2025-01-07 16:48:27 +09:00
Hashicorp.Terraform `
Amazon.AWSCLI `
Kubernetes.kubectl `
Helm.Helm `
Derailed.k9s `
eksctl.eksctl `
vim.vim `
Git.Git `
ahmetb.kubectx `
ahmetb.kubens `
Docker.DockerDesktop `
Zen-Team.Zen-Browser `
2025-01-07 16:48:27 +09:00
DEVCOM.JetBrainsMonoNerdFont
2025-01-07 14:12:27 +09:00
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 $args }
$env:EDITOR = "code -w"
$env:PATH = "$env:PATH;C:\Program Files\Vim\vim91;"
'@ | `
Out-File -FilePath $profile
Set-Location ~/Desktop
2025-01-07 15:56:31 +09:00
2025-01-07 14:12:27 +09:00
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -useb https://releases.pmh.codes/cocktail.tar -OutFile cocktail.tar
Invoke-WebRequest -useb https://releases.pmh.codes/koishi.zip -OutFile koishi.zip
2025-01-07 15:30:09 +09:00
tar -xvf cocktail.tar
2025-01-07 15:56:31 +09:00
Expand-Archive koishi.zip
Set-Service ssh-agent -StartupType Automatic
Start-Service ssh-agent