<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Setting your terminal title to include your current ruby version</title>
	<atom:link href="http://raflabs.com/blogs/silence-is-foo/2010/07/25/setting-your-terminal-title-to-include-your-current-ruby-version/feed/" rel="self" type="application/rss+xml" />
	<link>http://raflabs.com/blogs/silence-is-foo/2010/07/25/setting-your-terminal-title-to-include-your-current-ruby-version/</link>
	<description>Mental notes on Ruby, Git, Rails and whatever geeky thing</description>
	<lastBuildDate>Sun, 22 Jan 2012 20:50:24 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: raf</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/07/25/setting-your-terminal-title-to-include-your-current-ruby-version/comment-page-1/#comment-112</link>
		<dc:creator>raf</dc:creator>
		<pubDate>Mon, 26 Jul 2010 18:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=536#comment-112</guid>
		<description>Cool!! I just updated the post and I included your discovery ;) Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Cool!! I just updated the post and I included your discovery <img src='http://raflabs.com/blogs/silence-is-foo/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Padilla</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/07/25/setting-your-terminal-title-to-include-your-current-ruby-version/comment-page-1/#comment-111</link>
		<dc:creator>David Padilla</dc:creator>
		<pubDate>Mon, 26 Jul 2010 17:56:32 +0000</pubDate>
		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=536#comment-111</guid>
		<description>Of course, a little reading makes you stumble into stuff like this:

http://rvm.beginrescueend.com/workflow/prompt/

So, all you need is LOVE. And this on your .profile:

PS1=&quot;[\h:\$(~/.rvm/bin/rvm-prompt)]\W \u\$ &quot;</description>
		<content:encoded><![CDATA[<p>Of course, a little reading makes you stumble into stuff like this:</p>
<p><a href="http://rvm.beginrescueend.com/workflow/prompt/" rel="nofollow">http://rvm.beginrescueend.com/workflow/prompt/</a></p>
<p>So, all you need is LOVE. And this on your .profile:</p>
<p>PS1=&#8221;[\h:\$(~/.rvm/bin/rvm-prompt)]\W \u\$ &#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Padilla</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/07/25/setting-your-terminal-title-to-include-your-current-ruby-version/comment-page-1/#comment-110</link>
		<dc:creator>David Padilla</dc:creator>
		<pubDate>Mon, 26 Jul 2010 17:15:28 +0000</pubDate>
		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=536#comment-110</guid>
		<description>You probably don&#039;t have a RUBY_VERSION variable on 1.8.7 because you&#039;re using the system ruby.

Try installing rvm&#039;s 1.8.7 and setting it as default

rvm install 1.87
rvm 1.8.7 --default

Now, what I did was extract the ruby version and the gemset from $GEM_HOME, something like this:

RUBY_WITH_GEMSET=$GEM_HOME
RUBY_WITH_GEMSET=${RUBY_WITH_GEMSET%%/[ruby]*}
export RUBY_WITH_GEMSET=${GEM_HOME:(${#RUBY_WITH_GEMSET} + 1)}
export PS1=&quot;[\h:${RUBY_WITH_GEMSET}]\W \u\$&quot;

Now I can see the ruby version and the gemset on the prompt, if you don&#039;t care about the gemset, you can just use RUBY_VERSION on PS1.</description>
		<content:encoded><![CDATA[<p>You probably don&#8217;t have a RUBY_VERSION variable on 1.8.7 because you&#8217;re using the system ruby.</p>
<p>Try installing rvm&#8217;s 1.8.7 and setting it as default</p>
<p>rvm install 1.87<br />
rvm 1.8.7 &#8211;default</p>
<p>Now, what I did was extract the ruby version and the gemset from $GEM_HOME, something like this:</p>
<p>RUBY_WITH_GEMSET=$GEM_HOME<br />
RUBY_WITH_GEMSET=${RUBY_WITH_GEMSET%%/[ruby]*}<br />
export RUBY_WITH_GEMSET=${GEM_HOME:(${#RUBY_WITH_GEMSET} + 1)}<br />
export PS1=&#8221;[\h:${RUBY_WITH_GEMSET}]\W \u\$&#8221;</p>
<p>Now I can see the ruby version and the gemset on the prompt, if you don&#8217;t care about the gemset, you can just use RUBY_VERSION on PS1.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

