IRB under windows ...

J

Jeff Wood

------=_Part_6965_26042436.1129224156599
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Where does IRB go looking for .irbrc files on a windows system?
j.

--
"http://ruby-lang.org -- do you ruby?"

Jeff Wood

------=_Part_6965_26042436.1129224156599--
 
J

Jeffrey Dik

Looks like

%HOME%/.irbrc [if there is an environment variable "HOME"]
irbrc
irb.rc
_irbrc
$irbrc

It uses "load" to load it, so "load" tries each of the load path
directories for each of [.irbrc, irb.rc, _irbrc, $irbrc].

Hope that helps,
Jeff
 
J

Jeff Wood

------=_Part_8521_25025199.1129233220823
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

By default, there doesn't seem to be a "HOME" environment variable for
windows ...

That's why I'm asking... there's a lot of little goodies that I've added to
my .irbrc file on my linux systems that I'd like to get grooving under
windows ...

Guess I'll have to create that variable ...

Anybody else run into this???

j.

Looks like

%HOME%/.irbrc [if there is an environment variable "HOME"]
.irbrc
irb.rc
_irbrc
$irbrc

It uses "load" to load it, so "load" tries each of the load path
directories for each of [.irbrc, irb.rc, _irbrc, $irbrc].

Hope that helps,
Jeff

Where does IRB go looking for .irbrc files on a windows system?
j.


--
"http://ruby-lang.org -- do you ruby?"

Jeff Wood

------=_Part_8521_25025199.1129233220823--
 
D

Damphyr

Jeff said:
By default, there doesn't seem to be a "HOME" environment variable
for windows ...

That's why I'm asking... there's a lot of little goodies that I've
added to my .irbrc file on my linux systems that I'd like to get
grooving under windows ...
Nope, windows uses USERPROFILE (which usually is C:\Documents and
Settings\%USERNAME% )
You could set HOME=%USERPROFILE% if irb is indeed looking for HOME on
windows.
Cheers,
V.-


--
http://www.braveworld.net/riva

____________________________________________________________________
http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.
 
D

Dave Burt

Jeff Wood...
By default, there doesn't seem to be a "HOME" environment variable for
windows ...

I have it on all my machines. I don't know where it came from; I'd assumed
it was there by default. It's the same as USERPROFILE.
 
T

Terje Tjervaag

That's why I'm asking... there's a lot of little goodies that I've added = to
my .irbrc file on my linux systems that I'd like to get grooving under
windows ...

Care to share them? I've been looking for tips and tricks on
customising irb since I used ipython a while back, and haven't found
any sites that list any, other than getting completion working.

thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

irb selective auto-completion 0
gem server horked? 9
Nano & Mega ... Gems removed? 5
ri in irb 2
RDT ... an update for Eclipse 3.1 ??? 1
windows shell 26
Extending ruby with c 12
ruby for apache2 on windows 4

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top