This bash feature only on Windows 10 Anniversary. If you haven't updated yet, go update your Windows 10 first.
After that, activate the bash on
If you already did that, Windows need to restart your computer to install the bash for you.
Login to your desktop and create these 2 files.
bash_contextMenu-Enable.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash]
@="Bash here"
"Icon"="%USERPROFILE%\\AppData\\Local\\lxss\\bash.ico,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash\command]
@="c:\\windows\\system32\\bash.exe"
[HKEY_CLASSES_ROOT\Directory\shell\bash]
@="Bash here"
"Icon"="%USERPROFILE%\\AppData\\Local\\lxss\\bash.ico,0"
[HKEY_CLASSES_ROOT\Directory\shell\bash\command]
@="cmd.exe /c pushd \"%V\" && c:\\windows\\system32\\bash.exe"
bash_contextMenu-Disable.reg
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\bash]
[-HKEY_CLASSES_ROOT\Directory\shell\bash]
And then, double click to bash_contextMenu-Enable.reg to add bash to context menu.
If you wanna remove that from the context menu just double click on bash_contextMenu-Disable.reg
Now go try to Right Click on your Desktop you will see Bash here