-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make explainshell work in WSL #42
Comments
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 e.g: Check: https://manpages.ubuntu.com/manpages/impish/man1/wslview.1.html |
fun fact you can open exe's even in 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
The text was updated successfully, but these errors were encountered: