Like many Ruby and Rails developers I use Pry instead of IRB for almost all of my projects. Recently I realized that many people are not aware of the fact that pry supports project-specific .pryrc files, which can come in very handy, for example when trying things out in a Rails console. Just add a .pryrc file at the root of your application and add code you want to be available in each console session there.