Files
init-win/init-next.ps1
Minhyeok Park 8aa00b9d18
All checks were successful
/ deploy_site (push) Successful in 3s
fix: use sudo when needed
2025-01-21 03:48:30 +00:00

72 lines
3.4 KiB
PowerShell

wsl --import Arch ./Arch ./Arch/rootfs.tar.gz
wsl sed -i '1iServer = http://ftp.lanet.kr/pub/archlinux/\$repo/os/\$arch' /etc/pacman.d/mirrorlist
wsl pacman-key --init
wsl pacman-key --populate
wsl pacman -Sy --noconfirm archlinux-keyring
wsl pacman -Syu --noconfirm git zsh base base-devel
wsl useradd -m -G wheel -s /bin/zsh pmh
wsl sh -c "echo '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/wheel"
wsl sh -c "echo pmh:password | chpasswd"
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 'yay -S fakeroot'
wsl sh -c 'yay -Syu curl wget vim terraform eksctl kubectl helm jq aws-cli-v2 qemu-full docker docker-buildx oh-my-zsh-git zsh-autosuggestions-git zsh-syntax-highlighting-git'
wsl sh -c 'cat /usr/share/oh-my-zsh/zshrc > ~/.zshrc'
wsl sh -c 'echo source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh >> ~/.zshrc'
wsl sh -c 'echo source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh >> ~/.zshrc'
wsl sh -c 'curl https://raw.githubusercontent.com/pmh-only/cocktail-bar/refs/heads/main/_qkstart/scripts/install/alias.sh | sh'
wsl sudo systemctl enable --now docker
wsl sudo usermod -aG docker pmh
wsl docker run --privileged --rm tonistiigi/binfmt --install all
code --install-extension abierbaum.vscode-file-peek
code --install-extension akamud.vscode-theme-onelight
code --install-extension amazonwebservices.aws-toolkit-vscode
code --install-extension anysphere.pyright
code --install-extension dbaeumer.vscode-eslint
code --install-extension digitalbrainstem.javascript-ejs-support
code --install-extension drcika.apc-extension
code --install-extension emeraldwalk.runonsave
code --install-extension esbenp.prettier-vscode
code --install-extension formulahendry.auto-rename-tag
code --install-extension golang.go
code --install-extension hashicorp.terraform
code --install-extension lunuan.kubernetes-templates
code --install-extension mechatroner.rainbow-csv
code --install-extension ms-azuretools.vscode-docker
code --install-extension ms-kubernetes-tools.vscode-kubernetes-tools
code --install-extension ms-python.debugpy
code --install-extension ms-python.python
code --install-extension ms-python.vscode-pylance
code --install-extension ms-toolsai.jupyter
code --install-extension ms-toolsai.jupyter-keymap
code --install-extension ms-toolsai.jupyter-renderers
code --install-extension ms-toolsai.vscode-jupyter-cell-tags
code --install-extension ms-toolsai.vscode-jupyter-slideshow
code --install-extension ms-vscode-remote.remote-containers
code --install-extension ms-vscode-remote.remote-ssh
code --install-extension ms-vscode-remote.remote-ssh-edit
code --install-extension ms-vscode-remote.remote-wsl
code --install-extension ms-vscode.live-server
code --install-extension ms-vscode.remote-explorer
code --install-extension pkief.material-icon-theme
code --install-extension prisma.prisma
code --install-extension redhat.vscode-yaml
code --install-extension remcohaszing.schemastore
code --install-extension simonsiefke.svg-preview
code --install-extension standard.vscode-standard
code --install-extension streetsidesoftware.code-spell-checker
code --install-extension tomoki1207.pdf
code --install-extension usernamehw.errorlens
code --install-extension vscodevim.vim
code --install-extension yzhang.markdown-all-in-one
wsl git clone https://github.com/pmh-only/cocktail-bar ~/pack
wsl code ~/pack