<?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; cygwin</title>
	<atom:link href="http://psyjinx.com/jyoung/tag/cygwin/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 files from cygwin into Visual Studio</title>
		<link>http://psyjinx.com/jyoung/2010/02/how-to-open-files-from-cygwin-into-visual-studio/</link>
		<comments>http://psyjinx.com/jyoung/2010/02/how-to-open-files-from-cygwin-into-visual-studio/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 07:02:03 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[dotfiles]]></category>
		<category><![CDATA[mintty]]></category>
		<category><![CDATA[visualstudio2008]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=242</guid>
		<description><![CDATA[<p>Had the desire to open files from the command line (a cygwin terminal, mintty, to be specific) into my existing session of Visual Studio 2008.  Here is what you can do.</p>
<p>Adjust paths as necessary.  Put this in your bash profile:</p>

export PATH=$PATH:/cygdrive/c/Program\ Files\ \&#40;x86\&#41;/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/
alias devedit=&#34;devenv \$1 /edit&#34;

<p>Now, this gives you two [...]]]></description>
			<content:encoded><![CDATA[<p>Had the desire to open files from the command line (a cygwin terminal, mintty, to be specific) into my existing session of Visual Studio 2008.  Here is what you can do.</p>
<p>Adjust paths as necessary.  Put this in your bash profile:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>cygdrive<span style="color: #000000; font-weight: bold;">/</span>c<span style="color: #000000; font-weight: bold;">/</span>Program\ Files\ \<span style="color: #7a0874; font-weight: bold;">&#40;</span>x86\<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>Microsoft\ Visual\ Studio\ <span style="color: #000000;">9.0</span><span style="color: #000000; font-weight: bold;">/</span>Common7<span style="color: #000000; font-weight: bold;">/</span>IDE<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">devedit</span>=<span style="color: #ff0000;">&quot;devenv <span style="color: #000099; font-weight: bold;">\$</span>1 /edit&quot;</span></pre></div></div>

<p>Now, this gives you two tools. Well, one, but two will be available on the command line.</p>
<p>The main tool you now have is devenv, which allows you to do all sorts of things.  type <code>devenv /?</code> to see all the things you can do with it.</p>
<p>We are interested in <code>devenv filename /edit</code>.  I would prefer to just type the filename, and not need to type /edit everytime. The alias devedit takes care of this for us.  So, you can do <code>devenv whatever</code> to have access to all the features that tool gives you, and you can do <code>devedit filename</code> to quickly open up the file in your existing Visual Studio session.  If there is no session running, it will start one up.</p>
]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/02/how-to-open-files-from-cygwin-into-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
