From 943f49ea92410d281f40cdb227db04be25088ffb Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Mon, 20 Jan 2025 20:43:45 +0900 Subject: [PATCH] refactor: update init.ps1 to run WSL installation in a background job and reorder software installations for improved clarity --- init.ps1 | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/init.ps1 b/init.ps1 index 38b6f02..6bffbdd 100644 --- a/init.ps1 +++ b/init.ps1 @@ -1,17 +1,18 @@ 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 +Start-Job -ScriptBlock { + wsl --install --no-distribution +} -winget install ` - --disable-interactivity ` - --accept-source-agreements ` - --force ` - ` - Microsoft.WindowsTerminal ` - Microsoft.VisualStudioCode ` - Zen-Team.Zen-Browser ` - DEVCOM.JetBrainsMonoNerdFont +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