Add Bash on Ubuntu on Windows to context menu – Ashwin Sinha

Add Bash on Ubuntu on Windows to context menu

Bash on Ubuntu on Windows (installation instructions) is a Linux Subsystem for Windows.

To add it to the Windows right click context menu, perform the following steps:

  • Open regedit from the run menu Win + R.

  • Under HKEY_CLASSES_ROOT\Directory\Background\shell create a key called Bash on Ubuntu on Windows.

  • Now add a string value to this key called Icon with a path to the desired icon "%USERPROFILE%\AppData\Local\lxss\bash.ico" (including quotes).

  • Create a new key called Command under Bash on Ubuntu on Windows.

  • Change the default value to the path where your bash.exe is, like C:\Windows\System32\bash.exe.