{"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":"
<\/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 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<\/a>\n<\/p>\n After Cygwin is launched, open it up and type the command Creating a “Bash Prompt Here” shortcut<\/h2>\n
chere -i<\/code><\/strong>, like so:<\/p>\n