{"id":3721,"date":"2016-08-13T12:33:22","date_gmt":"2016-08-13T07:03:22","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=3721"},"modified":"2019-05-12T02:53:58","modified_gmt":"2019-05-12T02:53:58","slug":"add-bash-right-click-menu-folders-windows-10","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/add-bash-right-click-menu-folders-windows-10\/","title":{"rendered":"Add Bash to the Right-Click Menu for Folders in Windows 10"},"content":{"rendered":"<p>So you installed Bash in Windows 10 (Anniversary Update v1607) and wondering how to add it to the right-click menu for folders, like the built-in &#8220;Open Command window here&#8221; option? Here is a registry edit to add &#8220;Bash here&#8221; to the context menu for folders and desktop.<!--more--><\/p>\n<p>Download <a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/bash_here.zip\">bash_here.zip<\/a> and run the enclosed REG file bash_here.reg.<\/p>\n<p>You&#8217;ll now see &#8220;Bash here&#8221; when you right-click on the Desktop, folder or an empty area in a folder (directory background). Selecting &#8220;Bash here&#8221; would start Bash in the current directory from where the command was launched.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3722\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/bash-here-2.png\" alt=\"add bash right-click menu\" width=\"650\" height=\"365\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3723\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/bash-here-3.png\" alt=\"add bash right-click menu\" width=\"650\" height=\"440\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3724\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/bash-here-4.png\" alt=\"add bash right-click menu\" width=\"650\" height=\"300\" \/><\/p>\n<h2>Contents of the REG File<\/h2>\n<pre><code>Windows Registry Editor Version 5.00\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\bash]\r\n@=\"Bash here\"\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\bash\\command]\r\n@=\"c:\\\\windows\\\\system32\\\\bash.exe\"\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\shell\\bash]\r\n@=\"Bash here\"\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\shell\\bash\\command]\r\n@=\"cmd.exe \/c pushd \\\"%V\\\" &amp;&amp; c:\\\\windows\\\\system32\\\\bash.exe\"<\/code><\/pre>\n<p>Note that the Windows installation drive is set as C:\\ in the REG file. If you have installed Windows in a different drive, edit the REG file using Notepad and change accordingly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you installed Bash in Windows 10 (Anniversary Update v1607) and wondering how to add it to the right-click menu for folders, like the built-in &#8220;Open Command window here&#8221; option? Here is a registry edit to add &#8220;Bash here&#8221; to the context menu for folders and desktop.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8],"tags":[441],"class_list":["post-3721","post","type-post","status-publish","format-standard","hentry","category-windows-10","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3751,"url":"https:\/\/www.winhelponline.com\/blog\/sh-files-associate-with-bash-windows-10\/","url_meta":{"origin":3721,"position":0},"title":"Associate .SH Shell Scripts with Bash in Windows 10","author":"Ramesh","date":"August 9, 2016","format":false,"excerpt":"If you've installed Bash on Ubuntu on Windows in Windows 10 version 1607 and higher, and want to associate .SH shell scripts with Bash, here is a quick script solution.To access Windows file system path in Bash, you use the following syntax or semantics:\/mnt\/c\/Windows\/MyTasks.shI wrote a small Vbscript that converts\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2433,"url":"https:\/\/www.winhelponline.com\/blog\/cascading-menu-jump-lists-issue-windows-10\/","url_meta":{"origin":3721,"position":1},"title":"Cascading Menu and File Explorer Jump Lists Issue in Windows 10","author":"Ramesh","date":"March 28, 2016","format":false,"excerpt":"When you implement Cascading Menus in File Folders (Directory) using the SubCommands or ExtendedSubCommands registry keys in Windows 10, an interesting thing happens. The last item in your Cascading menu gets executed when you right-click Pinned File Explorer shortcut in the Taskbar, and click on a folder in the Jump\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/cascade1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/cascade1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/cascade1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":4261,"url":"https:\/\/www.winhelponline.com\/blog\/print-directory-contents-using-chrome-firefox\/","url_meta":{"origin":3721,"position":2},"title":"How to Print Directory Contents Using Different Methods","author":"Ramesh","date":"October 4, 2016","format":false,"excerpt":"You can copy folder contents by selecting all items in a folder, pressing Shift key and clicking the Copy as Path command in the right-click menu. Then open Notepad or any other text editor and paste the contents from the clipboard. But if you need to print the directory list\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"get directory listing - sysexporter","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dir-list-sysexporter.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dir-list-sysexporter.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dir-list-sysexporter.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dir-list-sysexporter.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":5031,"url":"https:\/\/www.winhelponline.com\/blog\/ribbon-command-right-click-menu-windows-10\/","url_meta":{"origin":3721,"position":3},"title":"How to Add a Ribbon Command to Right-click Menu in Windows 10","author":"Ramesh","date":"December 29, 2016","format":false,"excerpt":"Ribbon UI consists of a command bar with a series of tabs. Each tab contains a set of commands such as Cut, Copy, Paste, etc. Ribbon UI was first introduced in Office 2007. Then it was included in File Explorer in Windows 8 and Windows 10. This article explains how\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"ribbon command in right-click menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/add-ribbon-context-menu-5.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/add-ribbon-context-menu-5.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/add-ribbon-context-menu-5.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":24381,"url":"https:\/\/www.winhelponline.com\/blog\/add-open-command-window-here-menu-windows-11\/","url_meta":{"origin":3721,"position":4},"title":"How to Add &#8220;Open command window here&#8221; in Windows 11","author":"Ramesh","date":"October 10, 2021","format":false,"excerpt":"In Windows 11, the context menu \"Open Command window here\" doesn't exist by default. Instead, you'll see the \"Open in Windows Terminal\" and \"Open PowerShell window here\" (when you press Shift + right-click) options in the folder context menu. This article tells you how to add \"Open Command window here\"\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"windows terminal option in win+x start context menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/10\/win-x-terminal-powershell-comd.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1637,"url":"https:\/\/www.winhelponline.com\/blog\/cmd-default-for-folders-right-click\/","url_meta":{"origin":3721,"position":5},"title":"[Fix] &#8220;Cmd&#8221; is the Default Action for Folders (Right-click Menu)","author":"Ramesh","date":"February 14, 2016","format":false,"excerpt":"Summary: Default right-click action changes to Cmd for folders in Windows 10. Double-clicking folders shows the association error message.I've seen a few cases where the default action for folders somehow changed from Open to Cmd, showing up in bold when you right-click a file system folder. And clicking it shows\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-cmd-default-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/3721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=3721"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/3721\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=3721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=3721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=3721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}