<?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>Chris Irish &#124; Ruby, Rails, Javascript Developer &#124; Phoenix, AZ &#187; TextMate</title>
	<atom:link href="http://www.christopherirish.com/tag/textmate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christopherirish.com</link>
	<description>Ruby, Rails, Javascript, all things web development related</description>
	<lastBuildDate>Mon, 19 Jan 2026 07:43:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to setup Textmate to use RVM</title>
		<link>http://www.christopherirish.com/2010/06/28/how-to-setup-textmate-to-use-rvm/</link>
		<comments>http://www.christopherirish.com/2010/06/28/how-to-setup-textmate-to-use-rvm/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 15:00:00 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[RVM]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://www.christopherirish.com/?p=367</guid>
		<description><![CDATA[Alright, so you&#8217;ve switched to using rvm but when you run cmd+r on a Ruby file in TextMate you&#8217;re still using your old system install of Ruby&#8230; Luckily it only takes a few easy steps to setup TextMate to use your rvm environment. 1) First make sure your install of TextMate if updated Textmate -> [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Alright, so you&#8217;ve switched to using rvm but when you run cmd+r on a Ruby file in TextMate you&#8217;re still using your old system install of Ruby&#8230;  Luckily it only takes a few easy steps to setup TextMate to use your rvm environment.</p>
<p>1) First make sure your install of TextMate if updated<br />
<strong>Textmate -> Preferences -> Software Update -> Check Now</strong></p>
<p>2) Next make sure all your bundles are up to date.  The creator of rvm, Waynee Seguin, provides a small bash script to automate this process. You can check it out at this GitHub <a href="http://gist.github.com/455521">gist</a> </p>
<p>3) Now get the rvm name of the Ruby version you want to use in TextMate.  In my case I&#8217;m going to use my currently selected version &#8220;ruby-1.8.7-tv1_8_7_174&#8243;</p>

<div class="wp-terminal">$ rvm list<br/>rvm rubies<br/><br/>&nbsp;&nbsp;&nbsp;jruby-1.5.1 [ i386-java ]<br/>&nbsp;&nbsp;&nbsp;ruby-1.8.7-tv1_8_7_173 [ i386 ]<br/>=> ruby-1.8.7-tv1_8_7_174 [ i386 ]<br/>&nbsp;&nbsp;&nbsp;ruby-1.9.1-tv1_9_1_378 [ i386 ]<br/>&nbsp;&nbsp;&nbsp;ruby-1.9.2-head [ i386 ]<br/><br/></div>

<p>4) Then run the rvm command to wrap this ruby version for TextMate</p>

<div class="wp-terminal">$ rvm wrapper ruby-1.8.7-tv1_8_7_174 textmate<br/></div>

<p>5) Now set a TM_RUBY variable in your TextMate Preferences<br />
<strong>Textmate -> Preferences -> Advanced -> Shell Variables</strong></p>
<p>To the wrapper command generated by rvm for you, in my case it was found here:</p>
<p>/Users/cirish/.rvm/bin/textmate_ruby</p>
<p>6) Since TextMate will use it&#8217;s own builder, by removing it, we can use TM_RUBY as described above.</p>

<div class="wp-terminal">$ cd /Applications/TextMate.app/Contents/SharedSupport/Support/lib/<br/>mv Builder.rb Builder.rb.backup<br/></div>

<p>7) Last but not least, quit TextMate and re-open it to load these settings.  You should now be all good <img src='http://www.christopherirish.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2010/06/28/how-to-setup-textmate-to-use-rvm/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
