Skip to content

Instantly share code, notes, and snippets.

@allthetime
Created September 3, 2014 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allthetime/524c4a26893d4cfda96e to your computer and use it in GitHub Desktop.
Save allthetime/524c4a26893d4cfda96e to your computer and use it in GitHub Desktop.
~/.pryrc
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