class Pry::Command::Hist
def find_history
-
(Pry::Code)
- if it finds `--all` (or `-a`) switch, returns all
def find_history h = if opts.present?(:all) Pry.history.to_a else Pry.history.to_a.last(Pry.history.session_line_count) end Pry::Code(Pry.history.filter(h[0..-2])) end