Access History in IRB
Accessing the list of commands you have ran in your irb
or rails console
.
Running the following command in your console Readline::HISTORY.to_a
returns the array of commands you have typed in console. After which you can treat it like any other array in ruby - search, sort, etc.