0

I'm on Windows 10 Pro, I run headless Ubuntu in WSL and in Ubuntu I run this command:

gh pr create -w

Initially, the -w flag used to open a create PR link in the browser on the host OS.

But it no longer does. I have to scroll up, find the link, copy it and paste into the browser. Annoying!

How do I fix it?

1
  • @harrymc The repo you're linking to is irrelevant to my problem. Commented Jan 31, 2023 at 16:33

1 Answer 1

0

This resolved my issue:

gh config set browser wslview

Alternatively, this can be added to .bashrc:

export GH_BROWSER=wslview

Source. Credit: @mislav.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .