Skip to content

Instantly share code, notes, and snippets.

@rpunt
Last active November 5, 2021 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpunt/44de88620696af739b27199dd338a677 to your computer and use it in GitHub Desktop.
Save rpunt/44de88620696af739b27199dd338a677 to your computer and use it in GitHub Desktop.
wslsetup.ps1
if (((wsl -l --all) | Where-Object { $_ -like "Ubuntu-20.04" }).Length -eq 0) {
wsl --install --distribution Ubuntu-20.04
}
RefreshEnv
ubuntu2004.exe run sudo apt-get install -y software-properties-common
ubuntu2004.exe run sudo apt-add-repository -y ppa:rael-gc/rvm
ubuntu2004.exe run sudo apt-get update
ubuntu2004.exe run sudo apt-get install rvm
ubuntu2004.exe run sudo usermod -a -G rvm ryan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment