Skip to content

Instantly share code, notes, and snippets.

@rpunt
Last active Nov 5, 2021
Embed
What would you like to do?
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