Cygwin: Bash Prompt Here

As I’ve already discussed it is quite easy to get yourself a nice little shell called Cygwin on Windows. Once you start using Cygwin it can be quite addictive, I can’t work on Windows without it. The biggest problem is that to get to any of your data outside of the home directory under Cygwin requires navigating through the sometimes unintuitive directory structure under Windows. Typically what happens is you locate the folder with the stuff you want to work on using the Windows explorer and then work your way to it again using Cygwin. This is a somewhat less than efficient use of your time.

Luckily Cygwin comes equipped with a little utility to help you out with this problem. It is called chere and make sure you install it when you install Cygwin. chere installs an entry in the context menu when you right click on directories named “Bash Prompt Here.” Selecting it will open a Cygwin shell with the current working directory set to the directory you right clicked on. To install it simply run this from Cygwin:

chere -i

For more information on chere run this from Cygwin:

man chere

3 Responses to “Cygwin: Bash Prompt Here”

  1. foo Says:

    Thanks for the heads up, I have a similar context menu for a windows console.

  2. Bombinator Game Development » Blog Archive » Windows XP PowerToys: Open Command Window Here Says:

    […] discussed previously how to add an entry to the Windows context menu that would allow you to open a Cygwin bash shell […]

  3. Open Cygwin Bash Shell Here » Says:

    […] I did some searching and found a myriad of solutions to my problem, most of which were somewhat complicated. Thankfully, I did find one link that suggested an easier solution. […]

Leave a Reply