<?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>Matt Shelton &#187; shortcut</title>
	<atom:link href="http://www.mattshelton.net/tags/shortcut/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattshelton.net</link>
	<description>scribbling geekery, things and stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:38:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Cygwin Prompt Here (for tcsh)</title>
		<link>http://www.mattshelton.net/2008/05/17/cygwin-prompt-here-for-tcsh/</link>
		<comments>http://www.mattshelton.net/2008/05/17/cygwin-prompt-here-for-tcsh/#comments</comments>
		<pubDate>Sat, 17 May 2008 10:23:04 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[lifehacks]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[software notes]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[tcsh]]></category>

		<guid isPermaLink="false">http://www.mattshelton.net/?p=106</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.mattshelton.net/topics/nix/" title="*nix">*nix</a><a href="http://www.mattshelton.net/topics/code/" title="code">code</a><a href="http://www.mattshelton.net/topics/how-to/" title="how-to">how-to</a><a href="http://www.mattshelton.net/topics/lifehacks/" title="lifehacks">lifehacks</a><a href="http://www.mattshelton.net/topics/productivity/" title="productivity">productivity</a><a href="http://www.mattshelton.net/topics/software/" title="software notes">software notes</a><a href="http://www.mattshelton.net/topics/windows/" title="windows">windows</a></p>In a post I can no longer find, Scott Hanselman blogged about a registry entry to add a &#8220;Command Prompt Here&#8221; item to Windows&#8217; right-click context menu. This has, many times, saved me almost 30 seconds of opening cmd.exe and &#8230; <a href="http://www.mattshelton.net/2008/05/17/cygwin-prompt-here-for-tcsh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.mattshelton.net/wp-content/2008/05/prompt.png' rel='lightbox'><img src="http://www.mattshelton.net/wp-content/2008/05/prompt.png" alt="" title="prompt" width="204" height="279" class="alignright size-full wp-image-108" /></a>In a post I can no longer find, <a href="http://www.hanselman.com/blog/">Scott Hanselman</a> blogged about a registry entry to add a &#8220;Command Prompt Here&#8221; item to Windows&#8217; right-click context menu. This has, many times, saved me almost 30 seconds of opening cmd.exe and typing out a ridiculous CD statement. Since then, however, I&#8217;ve found myself using Cygwin a lot more than cmd as it gives me a lot more power in an environment with which I&#8217;m much more familiar. (Some things are kinda wonky [pathnames, for instance] but it&#8217;s more user-friendly to me, and I can&#8217;t quite get into PowerShell like some of my more Windows-oriented friends.)</p>
<p>Because of my Cygwin-love, I&#8217;ve found myself using the Command Prompt Here context-menu item, and then immediately entering tcsh and doing what needs to be done. I can&#8217;, then, double Ctrl-D my way out of the window since cmd has no clue what Ctrl-D is. It&#8217;s annoying, but it means I have to take the extra two seconds to type &#8216;exit&#8217;. So, throwing any concept of cost/benefit out the window [though, those four seconds probably add up to like... 30 minutes of lost productivity a year], I investigated how to do the same thing for Cygwin.</p>
<p><a href="http://www.mindview.net/Etc/Cygwin/BashHere">Somebody</a> figured this out already, so all that was left was for me to have it run tcsh instead of bash, and I was all set. This was painfully simple. Here&#8217;s the <a href="http://www.mattshelton.net/wp-content/2008/05/cygwin_here.reg">registry script</a> I&#8217;m using:</p>
<pre class="brush: vb; title: ; notranslate">REGEDIT4
[HKEY_CLASSES_ROOT\Directory\shell\TcshHere]
@=&quot;&amp;Cygwin Prompt Here&quot;

[HKEY_CLASSES_ROOT\Directory\shell\TcshHere\command]
@=&quot;c:\cygwin\bin\bash.exe --login -c \&quot;cd '%1' ; exec /bin/tcsh\&quot;&quot;

[HKEY_CLASSES_ROOT\Drive\shell\TcshHere]
@=&quot;&amp;Cygwin Prompt Here&quot;

[HKEY_CLASSES_ROOT\Drive\shell\TcshHere\command]
@=&quot;c:\cygwin\bin\bash.exe --login -c \&quot;cd '%1' ; exec /bin/tcsh\&quot;&quot;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mattshelton.net/2008/05/17/cygwin-prompt-here-for-tcsh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

