Skip to content

Instantly share code, notes, and snippets.

@otakush
otakush / windowsTerminalSetup.md
Created July 9, 2022 18:59 — forked from TadejPolajnar/windowsTerminalSetup.md
Windows WSL 2 terminal setup

Windows WSL 2 terminal setup

Prerequisites

Windows 10 version 2004 (Build 10941) or higher.

Enabled Windows Subsystem for Linux feature. To enable following enter in Powershell

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
# 0. open a PowerShell as administrator
# 1. Enable WSL
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
# 2. Enable VM Platform
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
# 3. RESTART system, then open a PowerShell as administrator again
# MAKE SURE YOU HAVE RESTARTED BEFORE YOU CONTINUE