Nick Sieger: .irbrc on Windows tag:blog.nicksieger.com,2005:Typo Typo 2007-08-31T17:12:14+00:00 Matt Scilipoti urn:uuid:fa59fafc-cf80-4126-abec-f5ef16a40288 2006-09-10T03:20:16+00:00 2007-08-31T17:12:14+00:00 Comment on .irbrc on Windows by Matt Scilipoti <p>If Windows Explorer is not allowing you to create a file named .irbrc (&#8220;You must type a file name&#8221;), you can use the DOS command &#8220;ren existingFile .irbrc&#8221; </p> Nick Sieger urn:uuid:7e13f3c6-3b5b-4ec7-bbec-2078f5762f49 2006-05-30T16:57:00+00:00 2007-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>