# Load script in console

**URL:** <https://www.ruby-forum.com/t/load-script-in-console/171473>\
**Category:** Rails\
**Created:** [July 3, 2009, 7:24am UTC](https://www.ruby-forum.com/t/load-script-in-console/171473 "2009-07-03T07:24:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [July 3, 2009, 7:24am UTC](https://www.ruby-forum.com/t/load-script-in-console/171473/1 "2009-07-03T07:24:39Z")

</div>

I find myself retyping statements in the console all the time. Is there  
a way to put all these statements in the script and at the console, just  
run it? Thanks.

---

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [July 3, 2009, 8:34am UTC](https://www.ruby-forum.com/t/load-script-in-console/171473/2 "2009-07-03T08:34:22Z")

</div>

On Fri, Jul 3, 2009 at 7:24 AM, Learn by  
Doing[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I find myself retyping statements in the console all the time. Is there  
> a way to put all these statements in the script and at the console, just  
> run it? Thanks.

Put them in ~/.irbrc

Andrew T.  
[http://ramblingsonrails.com](http://ramblingsonrails.com)

[http://MyMvelope.com](http://MyMvelope.com) - The SIMPLE way to manage your savings
