Last active
March 14, 2022 21:23
-
-
Save andrefcdias/1b1949d437b1963041e8a3d955856351 to your computer and use it in GitHub Desktop.
This file contains 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
#Requires -RunAsAdministrator | |
<# Coolest development environment setup script in the block (Part 2) | |
--------------------------------------------------------- | |
What can I expect from this script? | |
Part 2 of the setup script, to be run after rebooting to activate WSL | |
This will: | |
- Finalize WSL setup | |
- Start development environment script in WSL | |
#> | |
# Set script to stop on errors | |
Set-StrictMode -Version Latest | |
$ErrorActionPreference = "Stop" | |
$PSDefaultParameterValues['*:ErrorAction']='Stop' | |
echo "# Continuing the setup..." | |
echo "" | |
echo "" | |
echo "> Updating WSL kernel" | |
wsl --update | |
echo "" | |
echo "> Restarting WSL" | |
wsl --shutdown | |
echo "" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment