<?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>james young &#187; windows</title>
	<atom:link href="http://psyjinx.com/jyoung/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://psyjinx.com/jyoung</link>
	<description>web application developer</description>
	<lastBuildDate>Sun, 15 Aug 2010 14:31:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to open a window from terminal in cygwin on vista</title>
		<link>http://psyjinx.com/jyoung/2010/02/how-to-open-a-window-from-terminal-in-cygwin-on-vista/</link>
		<comments>http://psyjinx.com/jyoung/2010/02/how-to-open-a-window-from-terminal-in-cygwin-on-vista/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 11:42:11 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[dotfiles]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=237</guid>
		<description><![CDATA[<p>So I got a new Dell through work with Vista installed.  Naturally one of the first things I did was install cygwin so I can use mintty.  This gives me a decent terminal on widnows.  If you don&#8217;t know what those are, I encourage you to give them a shot.</p>
<p>Anyway, having used [...]]]></description>
			<content:encoded><![CDATA[<p>So I got a new Dell through work with Vista installed.  Naturally one of the first things I did was install cygwin so I can use mintty.  This gives me a decent terminal on widnows.  If you don&#8217;t know what those are, I encourage you to give them a shot.</p>
<p>Anyway, having used a mac forever, I found myself missing the &#8216;open&#8217; command that you can do from Terminal (on the mac) to pop open a window from the directory you are in.</p>
<p>With a quick search, I found that someone else already figured this out, so I am going to post my version of it here:</p>
<p>In your .bash_profile, add this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">open</span>=<span style="color: #ff0000;">&quot;cygstart <span style="color: #000099; font-weight: bold;">\$</span>1&quot;</span></pre></div></div>

<p>Then in mintty (or any cygwin terminal) you can cd to where ever you want, then just do &#8216;open [path]&#8216; and it will pop open a windows window for [path].</p>
<p>Examples:</p>
<ul>
<li>open current directory: <code>$ open .</code></li>
<li>open home directory : <code>$ open ~</code></li>
<li>open program files: <code>$ open ~/c/Program\ Files</code></li>
</ul>
<p>Note: that last one assumes you have made a symlink in your home to /cygdrive/c/</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> ~; <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>cygdrive<span style="color: #000000; font-weight: bold;">/</span>c</pre></div></div>

<p>Here is the original thread that I found this tip in:<br />
<a href="http://cygwin.com/ml/cygwin/2002-09/msg00632.html">http://cygwin.com/ml/cygwin/2002-09/msg00632.html</a></p>
<p>There are a few solutions posted, my favorite is:<br />
<a href="http://cygwin.com/ml/cygwin/2002-09/msg00635.html">http://cygwin.com/ml/cygwin/2002-09/msg00635.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/02/how-to-open-a-window-from-terminal-in-cygwin-on-vista/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
