Created
September 3, 2014 18:09
-
-
Save allthetime/524c4a26893d4cfda96e to your computer and use it in GitHub Desktop.
~/.pryrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make a file ~/.pryrc | |
Pry.config.commands.command "history", "Get pry input history" do | |
Readline::HISTORY.to_a.map{|x| puts x} | |
end | |
Now... in pry typing "history" will print your history in a list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment