-
Notifications
You must be signed in to change notification settings - Fork 822
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
"Bash Here" Context Menu in Windows Explorer #603
Comments
I have already written a reg file if anyone wants to add it now. https://github.com/Manouchehri/bash-WSL-context-menu |
Thanks, this is great! One change you should consider making though is remove the hardcoded C:\Windows portion of the path which will only work for user's who have C:\Windows as their Windows directory. You can fix this by using a REG_EXPAND_SZ registry value. Here's what bash.reg would look like:
|
Pull requests are always appreciated. 😊 Sorry, I haven't used Windows
since the 7 Technical Preview so I've forgotten with how directories/paths
work here.
Feel free to add this to LxRun.exe or wherever is appropriate, would be
convenient to have it set up by default.
|
Also there's no need to write to HKCR. If you really do want it to be available for all users, write to HKLM\Software\Classes. If you only want it to apply to the current user, write to HKCU\Software\Classes. |
The reason I wrote it in HKCR is because cmd and Git Bash both did that.
We should probably installing it per user for WSL, right?
|
Yeah, seems like it should be per-user. |
@benhillis Any update on this? |
Unfortunately this change will not be in the Windows 10 anniversary update. Thanks for providing the reg key, I think many users will want this functionality and luckily it is easy to achieve with a simple reg key import. |
Thanks, good to know. =)
|
Thanks for the reg key! Any word on this being incorporated into future updates? |
Yeah, please get this incorporated ASAP. Because the other windows directories are mounted in |
TimothyBramlett I bet @xilun could add something to cbwin like "wcd" that would do patht translation back from Windows paths to linux ones. |
@fpqc It's quite easy to program but a little bit out of scope on my side... also you would have to single quote escape it due to backslashes - not very convenient. I think ConEmu does path translation on paste, but then of course when you use ConEmu and WSL at the moment there is the current issue of WSL / console keys not working well outside of an unwrapped Windows Console. |
I'm always getting "/mnt/c/Windows/System32", how can I get "current directory"? |
Please use ConEmu instead, it's much better than my method. On Oct 24, 2016 9:02 AM, "Kagami Sascha Rosylight" notifications@github.com
|
One of the reasons we can't support file explorer context menu extensions is because we can't launch bash at an arbitrary folder location. We have it on our backlog to fix for a future release. |
Here's a working solution that uses an aux. If you save the following text in a After import, you'll find a
Alternatively, you can use the following PowerShell snippet to create the registry entries:
To remove the entries later:
|
This works great and all, but at this point definitely seems like a feature that should be an option to have baked in. Any ideas on if there are plans for that? |
Any news on that issue? |
Support for a context menu item was added in build 17666. |
Something I've noticed is that if you use the open bash here context menu. It doesn't use any of your wsl console settings (eg. colors, fonts, window and font size) |
@bitcrazed - Could @mkarpoff's report be console related? |
@sunilmut without a doubt it is console-related. |
@mkarpoff As described in our post explaining how Console settings are resolved, when you launch a distro via Explorer context menu, the Console will look for settings in the following locations and order:
As noted above, when you launch via the context menu, you're not launching via a tile, so Console will look for distro settings, or default Console settings from the registry. If you launch your distro from a start menu tile, or shortcut pinned to your taskbar, your Console settings for that distro will be stored in that tile/shortcut but won't be found/used when launching via the context menu. Alas, we can't change this behavior in Console as it stands today, because doing so would break MANY users' expected behaviors, etc. However, we are looking at how we might rationalize, simplify, and improve settings in the future. |
@Brian-Perkins Could you consider adding an icon ? This would look ugly with some menu-items had icon |
We should have a context menu that gives an option to open Bash in the current folder.
The text was updated successfully, but these errors were encountered: