Nick Sieger: .irbrc on Windows tag:blog.nicksieger.com,2005:Typo Typo 2010-11-23T00:41:39+00:00 Matt Scilipoti urn:uuid:fa59fafc-cf80-4126-abec-f5ef16a40288 2006-09-10T03:20:16+00:00 2010-11-23T00:41:39+00:00 Comment on .irbrc on Windows by Matt Scilipoti <p>If Windows Explorer is not allowing you to create a file named &#46;irbrc (&#8220;You must type a file name&#8221;), you can use the DOS command &#8220;ren existingFile &#46;irbrc&#8221; </p> Nick Sieger urn:uuid:7e13f3c6-3b5b-4ec7-bbec-2078f5762f49 2006-05-30T16:57:00+00:00 2010-11-22T19:38:57+00:00 .irbrc on Windows <p>Having trouble getting IRB to use a &#46;irbrc file on Windows? The following seems to work:</p> <ol> <li>Create the &#46;irbrc file in your <code>%USERPROFILE%</code> directory&#46;</li> <li>Create an environment variable in the System Properties&#45;>Advanced Tab&#45;>Environment Variables area called <code>HOME</code> and set it to <code>%USERPROFILE%</code>&#46;</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 &#46;irbrc file&#46;</p> <p>Perhaps IRB should be updated to look in <code>%USERPROFILE%</code> on Windows?</p> <p>Plug: for handy &#46;irbrc contents refer to <a href="/articles/2006/04/23/tweaking-irb">this previous post</a>&#46;</p>