{"id":898,"date":"2009-05-16T20:57:41","date_gmt":"2009-05-17T01:57:41","guid":{"rendered":"http:\/\/unitstep.net\/?p=898"},"modified":"2009-05-16T20:59:04","modified_gmt":"2009-05-17T01:59:04","slug":"open-cygwin-bash-shell-here","status":"publish","type":"post","link":"https:\/\/unitstep.net\/blog\/2009\/05\/16\/open-cygwin-bash-shell-here\/","title":{"rendered":"Open Cygwin Bash Shell Here"},"content":{"rendered":"

\"cygwin-prompt-here-3\"<\/a><\/p>\n

If you’re like me, you love shortcuts and other tools<\/a> that improve productivity. One of the other things I’ve gained a liking for is the Bash shell, after spending time in a Unix environment. Since I couldn’t live without this, and the other tools that typically come with a Unix environment, I installed the great Cygwin<\/a>, in order to create a Linux-like environment on my Windows PC. (Not ready to make the full jump to Linux yet, for gaming reasons)<\/p>\n

However, one thing that always irked me was having to manually navigate to a certain folder after opening up a Bash shell in Cygwin. For Windows, there is a PowerToy<\/a> called “Open Command Window Here”, that provides a context menu option for quickly opening a (Windows) command prompt with the location set to the selected folder. This is helpful, since you often have the folder open when you want to also have a command prompt at the same location. Now, all I needed was the equivalent function, but for the Cygwin Bash shell, instead of the Windows Command prompt.<\/p>\n

<\/p>\n

Creating a “Bash Prompt Here” shortcut<\/h2>\n

I did some searching and found a myriad<\/a> of solutions<\/a> to my problem, most of which<\/a> were somewhat complicated<\/a>. Thankfully, I did find one link that suggested an easier solution<\/a>.<\/p>\n

Basically, here’s what you do. When you install Cygwin (of if you’ve already installed it, download it again and start setup again to run an update), make sure that you select the chere<\/strong> package under the “Shells” category.<\/p>\n

\n\"cygwin-prompt-here-1\"<\/a>\n<\/p>\n

After Cygwin is launched, open it up and type the command chere -i<\/code><\/strong>, like so:<\/p>\n

\n\"cygwin-prompt-here-2\"<\/a>\n<\/p>\n

You should now see the following option in your folder’s context menu, and more importantly, it works!<\/p>\n

\n\"cygwin-prompt-here-3\"<\/a>\n<\/p>\n

Hope you found this helpful!<\/p>","protected":false},"excerpt":{"rendered":"

If you’re like me, you love shortcuts and<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[346,345,277],"tags":[489,488,347,348,349],"_links":{"self":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts\/898"}],"collection":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/comments?post=898"}],"version-history":[{"count":4,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts\/898\/revisions"}],"predecessor-version":[{"id":905,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts\/898\/revisions\/905"}],"wp:attachment":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/media?parent=898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/categories?post=898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/tags?post=898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}