feat: enhance init-next.ps1 and init.ps1 to include additional Zsh plugins and streamline installation processes for improved development environment setup
All checks were successful
/ deploy_site (push) Successful in 3s
All checks were successful
/ deploy_site (push) Successful in 3s
This commit is contained in:
@ -57,7 +57,9 @@ wsl sh -c "printf '[user]\ndefault=pmh' >> /etc/wsl.conf"
|
|||||||
wsl --shutdown
|
wsl --shutdown
|
||||||
wsl git clone https://aur.archlinux.org/yay.git ~/yay
|
wsl git clone https://aur.archlinux.org/yay.git ~/yay
|
||||||
wsl sh -c "cd ~/yay && makepkg -si --noconfirm"
|
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 git clone https://github.com/pmh-only/cocktail-bar ~/pack
|
||||||
wsl code ~/pack
|
wsl code ~/pack
|
||||||
|
37
init.ps1
37
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-Process powershell -Verb runAs "Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0"
|
||||||
|
|
||||||
Start-Job -ScriptBlock {
|
Start-Job -ScriptBlock {
|
||||||
winget install `
|
wsl --install --no-distribution
|
||||||
--disable-interactivity `
|
|
||||||
--accept-source-agreements `
|
|
||||||
--force `
|
|
||||||
`
|
|
||||||
DEVCOM.JetBrainsMonoNerdFont `
|
|
||||||
Microsoft.WindowsTerminal `
|
|
||||||
Microsoft.VisualStudioCode `
|
|
||||||
Zen-Team.Zen-Browser
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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'
|
Expand-Archive Arch.zip
|
||||||
Invoke-WebRequest -useb https://github.com/yuk7/ArchWSL/releases/latest/download/Arch.zip -OutFile Arch.zip
|
Expand-Archive koishi.zip
|
||||||
Invoke-WebRequest -useb https://releases.pmh.codes/koishi.zip -OutFile koishi.zip
|
|
||||||
|
|
||||||
Expand-Archive Arch.zip
|
Start-Process powershell -Verb runAs "Set-Service ssh-agent -StartupType Automatic"
|
||||||
Expand-Archive koishi.zip
|
Start-Process powershell -Verb runAs "Start-Service ssh-agent"
|
||||||
|
}
|
||||||
|
|
||||||
Start-Process powershell -Verb runAs "Set-Service ssh-agent -StartupType Automatic"
|
winget install `
|
||||||
Start-Process powershell -Verb runAs "Start-Service ssh-agent"
|
--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"
|
Write-Output "After reboot, please run init-next.ps1"
|
||||||
|
Reference in New Issue
Block a user