1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Add Bash to Context menu on Windows 10

Last updated at Posted at 2016-08-21
1 / 2

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

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?