Open Ry-DS opened 1 year ago
Hey! Thanks for sharing feedback with the community!
I am wondering how the browser on WSL can be opened anyway ? You would probably open the browser of the host system. Which is pretty difficult and therefore I am not sure I we want to support this at all ?
It's very easy, and built into wsl. It's a matter of checking if the OS is running in WSL, and calling wslview <url>
e.g: wslview http://google.com
Check: https://manpages.ubuntu.com/manpages/impish/man1/wslview.1.html
fun fact you can open exe's even in wsl. powershell.exe -C "wsl --help" > wsl_help.txt
is a valid command which will work inside of wsl
When you ask terminal-copilot to explain a shell command, it crashes with the following:
This is expected, as a WSL instance doesn't have the
open
ability.I plan to make a PR to fix this, which will check if the VM is a WSL instance, and if so, usewslview
or another command instead to open the URL. ETA for the PR is about a month once I find the time.No longer use this in preference of github copilot's ai shell: https://githubnext.com/projects/copilot-cli Probably won't have the time to contribute this, but I'll keep this open for anyone else who runs into this