I am currently editing a file, and I\'m using irb to test the api:
> require \'./file.rb\'
> o = Object.new
> o.method
I then want
This won't run every command, but you can include a file on every IRb session. ~/.irbrc
is loaded each time you start an IRb session.
require "~/somefile.rb"
puts "somefile loaded"
> irb
somefile loaded
irb(main):001:0>
~/.irbrc
is loaded each time you start an irb session