Life's random bits By b1thunt3r (aka Ishan Jain)…
Opening Web Links in Windows Browser from WSL Environment

Opening Web Links in Windows Browser from WSL Environment

Ishan jain
Ugh, here we go with MFA again!..

There have been times when I have had to open URLs from WSL Terminal.
For example, login to GitHub with MFA instead of ssh key or Personal Access Token.

Run the following in WSL Terminal.

sudo apt install xdg-utils # replace with your distro's package manager
export BROWSER="cmd.exe /c start" # add to ~/.profile to make permanent
xdg-open https://www.microsoft.com/

Resources