epl
gem install epl
$ ruby -repl
irb(main):001>
With a script (or -e), it runs the script and then starts IRB with its
top-level locals:
$ ruby -repl -e 'x = 21'
irb(main):001> x * 2
=> 42
Inspired by ruby -rubygems (RIP ubygems.rb) and ruby -run.