<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>unitstep.net &#187; cygwin</title>
	<atom:link href="http://unitstep.net/blog/category/cygwin/feed/" rel="self" type="application/rss+xml" />
	<link>http://unitstep.net</link>
	<description>the home of peter chng</description>
	<lastBuildDate>Mon, 06 Feb 2012 01:23:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Open Cygwin Bash Shell Here</title>
		<link>http://unitstep.net/blog/2009/05/16/open-cygwin-bash-shell-here/</link>
		<comments>http://unitstep.net/blog/2009/05/16/open-cygwin-bash-shell-here/#comments</comments>
		<pubDate>Sun, 17 May 2009 01:57:41 +0000</pubDate>
		<dc:creator>Peter Chng</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://unitstep.net/?p=898</guid>
		<description><![CDATA[If you&#8217;re like me, you love shortcuts and]]></description>
			<content:encoded><![CDATA[<p class="image align-right"><a href="http://unitstep.net/wordpress/wp-content/uploads/2009/05/cygwin-prompt-here-3.jpg"><img src="http://unitstep.net/wordpress/wp-content/uploads/2009/05/cygwin-prompt-here-3-150x150.jpg" alt="cygwin-prompt-here-3" title="cygwin-prompt-here-3" width="150" height="150" class="alignnone size-thumbnail wp-image-902" /></a></p>
<p>If you&#8217;re like me, you love shortcuts and <a href="/blog/2007/07/08/using-launchy-to-improve-productivity-with-a-graphical-command-line/"">other tools</a> that improve productivity.  One of the other things I&#8217;ve gained a liking for is the Bash shell, after spending time in a Unix environment.  Since I couldn&#8217;t live without this, and the other tools that typically come with a Unix environment, I installed the great <a href="http://www.cygwin.com/">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>
<p>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 <a href="http://www.microsoft.com/windowsxp/Downloads/powertoys/Xppowertoys.mspx">PowerToy</a> called &#8220;Open Command Window Here&#8221;, 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>
<h2>Creating a &#8220;Bash Prompt Here&#8221; shortcut</h2>
<p>I did some searching and found a <a href="http://www.kertdawg.net/index.php?itemid=67">myriad</a> of <a href="http://www.burgaud.com/open-command-window-here/">solutions</a> to my problem, <a href="http://www.mindview.net/Etc/Cygwin/BashHere">most of which</a> were <a href="http://alecthegeek.wordpress.com/2006/10/19/windows-explorer-open-bash-here/">somewhat complicated</a>.  Thankfully, I did find one link that suggested an <a href="http://www.bombinator.com/gamedev/archives/12/command-line/cygwin-bash-prompt-here/">easier solution</a>.</p>
<p>Basically, here&#8217;s what you do.  When you install Cygwin (of if you&#8217;ve already installed it, download it again and start setup again to run an update), make sure that you select the <strong>chere</strong> package under the &#8220;Shells&#8221; category.</p>
<p class="image">
<a href="http://unitstep.net/wordpress/wp-content/uploads/2009/05/cygwin-prompt-here-1.jpg"><img src="http://unitstep.net/wordpress/wp-content/uploads/2009/05/cygwin-prompt-here-1-300x281.jpg" alt="cygwin-prompt-here-1" title="cygwin-prompt-here-1" width="300" height="281" class="alignnone size-medium wp-image-900" /></a>
</p>
<p>After Cygwin is launched, open it up and type the command <strong><code>chere -i</code></strong>, like so:</p>
<p class="image">
<a href="http://unitstep.net/wordpress/wp-content/uploads/2009/05/cygwin-prompt-here-2.jpg"><img src="http://unitstep.net/wordpress/wp-content/uploads/2009/05/cygwin-prompt-here-2-300x207.jpg" alt="cygwin-prompt-here-2" title="cygwin-prompt-here-2" width="300" height="207" class="alignnone size-medium wp-image-901" /></a>
</p>
<p>You should now see the following option in your folder&#8217;s context menu, and more importantly, it works!</p>
<p class="image">
<a href="http://unitstep.net/wordpress/wp-content/uploads/2009/05/cygwin-prompt-here-3.jpg"><img src="http://unitstep.net/wordpress/wp-content/uploads/2009/05/cygwin-prompt-here-3.jpg" alt="cygwin-prompt-here-3" title="cygwin-prompt-here-3" width="293" height="208" class="alignnone size-full wp-image-902" /></a>
</p>
<p>Hope you found this helpful!</p>
<hr/>Copyright &copy; 2012 <strong><a href="http://unitstep.net">unitstep.net</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact <strong><a href="mailto:webmaster@unitstep.net">webmaster@unitstep.net</a></strong> for more information.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://unitstep.net/blog/2009/05/16/open-cygwin-bash-shell-here/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

