# .irbrc on Windows

**URL:** <https://www.ruby-forum.com/t/irbrc-on-windows/169902>\
**Category:** Ruby\
**Created:** [June 10, 2009, 3:55am UTC](https://www.ruby-forum.com/t/irbrc-on-windows/169902 "2009-06-10T03:55:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jflint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ec8ea/32.png) [@jflint](https://www.ruby-forum.com/u/jflint)\
**Post date:** [June 10, 2009, 3:55am UTC](https://www.ruby-forum.com/t/irbrc-on-windows/169902/1 "2009-06-10T03:55:34Z")

</div>

I have read all of the help on this topic and I still cannot get irb to  
load the file.

I have added the environmental variables:

IRBRC  
HOME

with no effect. Is there a snappy way to get this to work?

Jeff

---

<div class="post-metadata">

**Author:** ![jflint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ec8ea/32.png) [@jflint](https://www.ruby-forum.com/u/jflint)\
**Post date:** [June 10, 2009, 4:25am UTC](https://www.ruby-forum.com/t/irbrc-on-windows/169902/2 "2009-06-10T04:25:52Z")

</div>

Jeffrey F. wrote:

> I have read all of the help on this topic and I still cannot get irb to  
> load the file.
> 
> I have added the environmental variables:
> 
> IRBRC  
> HOME
> 
> with no effect. Is there a snappy way to get this to work?
> 
> Jeff

I found my problem. Thanks.

---

<div class="post-metadata">

**Author:** ![jflint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ec8ea/32.png) [@jflint](https://www.ruby-forum.com/u/jflint)\
**Post date:** [June 10, 2009, 5:42am UTC](https://www.ruby-forum.com/t/irbrc-on-windows/169902/3 "2009-06-10T05:42:01Z")

</div>

On Jun 9, 10:55 pm, Jeffrey F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have read all of the help on this topic and I still cannot get irb to  
> load the file.
> 
> I have added the environmental variables:
> 
> IRBRC  
> HOME
> 
> with no effect. Is there a snappy way to get this to work?

You should place a .irbrc (there is a dot preceding the filename)  
inside your HOME. To figure where is HOME in your environment, please  
do the following, inside IRB

File.expand\_path(“~”)

That should tell you where in your OS installation is the proper place  
in your profile to place that file.

HTH,
