Skip to content

Instantly share code, notes, and snippets.

@himanshuxd
Created April 1, 2020 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save himanshuxd/c300bf2adfd6aa84c86a38298558e18d to your computer and use it in GitHub Desktop.
Save himanshuxd/c300bf2adfd6aa84c86a38298558e18d to your computer and use it in GitHub Desktop.
This is for wsl.exe and do be sure to edit the icon path you want to be displayed in the context menu.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\WSL2]
@="Open Ubuntu Bash here"
"Icon"="Path\\to\\your\\file.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\WSL2\command]
@="C:\Windows\System32\wsl.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment