Skip to content

Instantly share code, notes, and snippets.

@lemig
Created October 31, 2010 15:01
Show Gist options
  • Save lemig/656686 to your computer and use it in GitHub Desktop.
Save lemig/656686 to your computer and use it in GitHub Desktop.
Irb console input history
puts Readline::HISTORY.entries.split("exit").last[0..-2].join("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment