Nick Sieger: .irbrc on Windowstag:blog.nicksieger.com,2005:TypoTypo2007-08-31T17:12:14+00:00Matt Scilipotiurn:uuid:fa59fafc-cf80-4126-abec-f5ef16a402882006-09-10T03:20:16+00:002007-08-31T17:12:14+00:00Comment on .irbrc on Windows by Matt Scilipoti<p>If Windows Explorer is not allowing you to create a file named .irbrc (“You must type a file name”), you can use the DOS command “ren existingFile .irbrc” </p>Nick Siegerurn:uuid:7e13f3c6-3b5b-4ec7-bbec-2078f5762f492006-05-30T16:57:00+00:002007-08-31T17:12:14+00:00.irbrc on Windows<p>Having trouble getting IRB to use a .irbrc file on Windows? The following seems to work:</p>
<ol>
<li>Create the .irbrc file in your <code>%USERPROFILE%</code> directory.</li>
<li>Create an environment variable in the System Properties->Advanced Tab->Environment Variables area called <code>HOME</code> and set it to <code>%USERPROFILE%</code>.</li>
</ol>
<p>An alternate approach is to create an environment variable called <code>IRBRC</code> and set it to the full path of the .irbrc file.</p>
<p>Perhaps IRB should be updated to look in <code>%USERPROFILE%</code> on Windows?</p>
<p>Plug: for handy .irbrc contents refer to <a href="/articles/2006/04/23/tweaking-irb">this previous post</a>.</p>