From 31012fd4d182eacf1d7e2a01fa3743bbf3e14ad9 Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Mon, 20 Jan 2025 21:16:19 +0900 Subject: [PATCH] feat: enhance init-next.ps1 and init.ps1 to include additional Zsh plugins and streamline installation processes for improved development environment setup --- init-next.ps1 | 4 +++- init.ps1 | 37 ++++++++++++++++++++----------------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/init-next.ps1 b/init-next.ps1 index 7905def..d83ec71 100644 --- a/init-next.ps1 +++ b/init-next.ps1 @@ -57,7 +57,9 @@ wsl sh -c "printf '[user]\ndefault=pmh' >> /etc/wsl.conf" wsl --shutdown wsl git clone https://aur.archlinux.org/yay.git ~/yay wsl sh -c "cd ~/yay && makepkg -si --noconfirm" -wsl sh -c 'echo y | LANG=C yay --noprovides --answerdiff None --answerclean None --mflags "--noconfirm" fakeroot curl wget vim terraform eksctl kubectl helm jq aws-cli-v2-bin qemu-full docker docker-buildx oh-my-zsh' +wsl sh -c 'echo y | LANG=C yay --noprovides --answerdiff None --answerclean None --mflags "--noconfirm" fakeroot curl wget vim terraform eksctl kubectl helm jq aws-cli-v2-bin qemu-full docker docker-buildx oh-my-zsh-git zsh-autosuggestions-git zsh-syntax-highlighting-git' +wsl sh -c 'source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh > ~/.zshrc' +wsl sh -c 'source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh > ~/.zshrc' wsl git clone https://github.com/pmh-only/cocktail-bar ~/pack wsl code ~/pack diff --git a/init.ps1 b/init.ps1 index 573d536..47bc023 100644 --- a/init.ps1 +++ b/init.ps1 @@ -2,27 +2,30 @@ 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 { - winget install ` - --disable-interactivity ` - --accept-source-agreements ` - --force ` - ` - DEVCOM.JetBrainsMonoNerdFont ` - Microsoft.WindowsTerminal ` - Microsoft.VisualStudioCode ` - Zen-Team.Zen-Browser + wsl --install --no-distribution } -wsl --install --no-distribution +Start-Job -ScriptBlock { + $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 -$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 + Expand-Archive Arch.zip + Expand-Archive koishi.zip -Expand-Archive Arch.zip -Expand-Archive koishi.zip + Start-Process powershell -Verb runAs "Set-Service ssh-agent -StartupType Automatic" + Start-Process powershell -Verb runAs "Start-Service ssh-agent" +} -Start-Process powershell -Verb runAs "Set-Service ssh-agent -StartupType Automatic" -Start-Process powershell -Verb runAs "Start-Service ssh-agent" +winget install ` + --disable-interactivity ` + --accept-source-agreements ` + --force ` + ` + DEVCOM.JetBrainsMonoNerdFont ` + Microsoft.WindowsTerminal ` + Microsoft.VisualStudioCode ` + Zen-Team.Zen-Browser +Get-Job Write-Output "After reboot, please run init-next.ps1"