Published by


Brink's Avatar
Administrator

Posts: 18,991

Show Printable Version 


How to Add 'Open Bash window here' context menu in Windows 10

information   Information
Microsoft first made investments that improve cmd, PowerShell, and many other command-line tools and developer scenarios. Second Microsoft decided to grow their command line family by adding real, native Bash and with it support for Linux command-line tools which run directly on Windows in an environment that behaves like Linux!

Starting with Windows 10 Insider Preview Build 14316, you can natively run Bash in Windows. BASH is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distro’s, and in OSX. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.

You can now run Bash scripts, Linux command-line tools like sed, awk, grep, and you can even try Linux-first tools like Ruby, Git, Python, etc. directly on Windows. You can also access your Windows filesystem from within Bash allowing you to work on the same set of files using your preferred Windows tools or Linux command-line tools.

For more details about Bash, see:

This tutorial will show you how to add or remove a Open Bash window here context menu for all users in Windows 10.

Note   Note
While you must be signed in as an administrator to add or remove the "Open Bash window here" context menu, all users can use the context menu.

The "Open Bash window here" context menu item requires that Bash on Unbunto is enabled to work. Bash on Unbunto is not enabled by default in Windows 10.

The "Open Bash window here" context menu will be available when you right click or shift + right click on a folder or drive, and when you right click or shift + right click on the background of a folder, drive, library, or desktop.


EXAMPLE: "Open Bash window here" context menu
Click image for larger version. 

Name:	Open_Bash_window_here_context_menu.png 
Views:	75 
Size:	38.0 KB 
ID:	95969
Name:  Bash_on_Ubuntu_on_Windows.png
Views: 2125
Size:  6.4 KB



Here's How:

1. Do step 2 (add-right click), step 3 (add-Shift+right click) , or step 4 (remove) below for what you would like to do.


 2. To Add Right Click "Open Bash window here" Context Menu

A) Click/tap on the Download button below to download the file below, and go to step 5 below.

Add_Open_Bash_window_here_context_menu.reg

download


 3. To Add Shift + Right Click "Open Bash window here" Context Menu

A) Click/tap on the Download button below to download the file below, and go to step 5 below.

Add_Shift+Open_Bash_window_here_context_menu.reg

download


 4. To Remove "Open Bash window here" Context Menu

NOTE: This is the default setting.

A) Click/tap on the Download button below to download the file below, and go to step 5 below.

Remove_Open_Bash_window_here_context_menu.reg

download

5. Save the .reg file to your desktop.

6. Double click/tap on the downloaded .reg file to merge it.

7. If prompted, click on Run, Yes (UAC), Yes, and OK to approve the merge.

8. You can now delete the downloaded .reg file if you like.




That's it,
Shawn