From 2e8175d678090cb97c2912ccd209653c9a47cd56 Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Mon, 20 Jan 2025 21:06:46 +0900 Subject: [PATCH] refactor: streamline init.ps1 by removing WSL installation and consolidating software installation commands into a background job for improved clarity and efficiency --- init.ps1 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/init.ps1 b/init.ps1 index 7b2466b..573d536 100644 --- a/init.ps1 +++ b/init.ps1 @@ -2,18 +2,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" Start-Job -ScriptBlock { - wsl --install --no-distribution + winget install ` + --disable-interactivity ` + --accept-source-agreements ` + --force ` + ` + DEVCOM.JetBrainsMonoNerdFont ` + Microsoft.WindowsTerminal ` + Microsoft.VisualStudioCode ` + Zen-Team.Zen-Browser } -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