[holy ruby programmers batman!] .irbrc for Windows Users

Markus Prinz markus.prinz at qsig.org
Fri Dec 14 11:17:51 EST 2007


Hi,

The Docs say that Windows Users are out of luck with regards to  
the .irbrc - this isn't true. Simply define an environment variable  
called IRBRC and set it to the full path of your irbrc (e.g. "C: 
\Documents and Settings\<username>\_irbrc"), and presto, .irbrc for  
Windows.

There is also another way by setting the HOME-Var, but that has  
potential Issues if you're using msys/cygwin.

And you can also call the file ".irbrc" on Windows, but you'll have to  
save it via a text editor or something, because the Windows Explorer  
won't let you create a File with a . in front.

regards, Markus


More information about the Utilitybelt-tinkering mailing list