1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

added 'hist' command

This commit is contained in:
John Mair 2011-04-14 21:42:43 +12:00
parent c805841fe4
commit c41e18191b

View file

@ -23,9 +23,15 @@ class Pry
Pry.start(target)
end
# this cannot be accessed, it's just for help purposed.
command ".<shell command>", "All text following a '.' is forwarded to the shell." do
end
command "hist", "Show Readline history" do
text = add_line_numbers(Readline::HISTORY.to_a.join("\n"), 0)
stagger_output(text)
end
command "exit-program", "End the current program. Aliases: quit-program, !!!" do
exit
end