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:
parent
c805841fe4
commit
c41e18191b
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue