Skip to content

Instantly share code, notes, and snippets.

@banister
Created May 14, 2011 09:04
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 banister/972057 to your computer and use it in GitHub Desktop.
Save banister/972057 to your computer and use it in GitHub Desktop.
pry(main)> hist
0: def mon_ouie
1: puts "hello"
2: puts "lovely"
3: puts "goodbye"
4: end
pry(main)> mon_ouie;
hello
lovely
goodbye
pry(main)> hist --replay 0..2
pry(main)* puts "potato"
pry(main)* hist --replay 3..4
=> nil
pry(main)> mon_ouie;
hello
lovely
potato
goodbye
pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment