Notes on configuring ArchWSL on WSL2.
Edit %UserProfile%\.wslconfig:
[wsl2]
swap=0
localhostForwarding=true| # How to use | |
| # | |
| # First, you need to import the script: | |
| # > Import-Module -Name "C:\Your\Path\to\EnvPaths.psm1" | |
| # | |
| # Add C:\Foo as the first path in the current session (goes away when you log out / close the window): | |
| # > Add-EnvPathFirst -Path "C:\Foo" | |
| # | |
| # Add C:\Foo as the first path in the machine path (all users): | |
| # > Add-EnvPathFirst -Path "C:\Foo" -Container Machine |
Notes on configuring ArchWSL on WSL2.
Edit %UserProfile%\.wslconfig:
[wsl2]
swap=0
localhostForwarding=true| #CommentFlag // | |
| #InstallKeybdHook | |
| // Author: Jarvis Prestidge | |
| // Description: Simulates my preferred keyboard layout, similiar to that of the Pok3r 60% keyboard | |
| // on any keyboard without programmable keys. i.e. my laptop ^^ | |
| // <COMPILER: v1.1.22.00> | |
| #Put this in Export-Chocolatey.ps1 file and run it: | |
| #.\Export-Chocolatey.ps1 > packages.config | |
| #You can install the packages using | |
| #choco install packages.config -y | |
| Write-Output "<?xml version=`"1.0`" encoding=`"utf-8`"?>" | |
| Write-Output "<packages>" | |
| choco list -lo -r -y | % { " <package id=`"$($_.SubString(0, $_.IndexOf("|")))`" version=`"$($_.SubString($_.IndexOf("|") + 1))`" />" } | |
| Write-Output "</packages>" |