Last active
November 5, 2021 13:26
-
-
Save rpunt/44de88620696af739b27199dd338a677 to your computer and use it in GitHub Desktop.
wslsetup.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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