From d63dd2738c3e23a6d90213d4e22b5e9f8d1c9bde Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Mon, 20 Jan 2025 21:20:44 +0900 Subject: [PATCH] feat: enhance init-next.ps1 with new Zsh aliases for Kubernetes and Terraform commands, and update init.ps1 to include OpenVPN installation for improved development environment setup --- init-next.ps1 | 18 ++++++++++++++++-- init.ps1 | 3 ++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/init-next.ps1 b/init-next.ps1 index d83ec71..08b8db1 100644 --- a/init-next.ps1 +++ b/init-next.ps1 @@ -58,8 +58,22 @@ 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-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 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 sh -c @' +cat <> ~/.bashrc >> ~/.zshrc +alias ka="kubectl apply -f" +alias kd="kubectl describe -f" +alias kx="kubectl delete -f" +alias kg="kubectl get -f" +alias kns="kubens" +alias t="terraform" +alias ti="terraform init" +alias ta="terraform apply" +alias taa="terraform apply --auto-approve" +alias to="terraform output" +EOF +'@ wsl git clone https://github.com/pmh-only/cocktail-bar ~/pack wsl code ~/pack diff --git a/init.ps1 b/init.ps1 index 47bc023..982c094 100644 --- a/init.ps1 +++ b/init.ps1 @@ -21,7 +21,8 @@ winget install ` --disable-interactivity ` --accept-source-agreements ` --force ` - ` + ` + OpenVPNTechnologies.OpenVPN ` DEVCOM.JetBrainsMonoNerdFont ` Microsoft.WindowsTerminal ` Microsoft.VisualStudioCode `