Added paging to pryrc by default
See pryrc comments for how to disable.
This commit is contained in:
parent
d64108b9a7
commit
c95df62622
@ -21,7 +21,12 @@ Pry.config.ls.private_method_color = :bright_black
|
||||
# look at ~/.aprc for more settings for awesome_print
|
||||
begin
|
||||
require 'awesome_print'
|
||||
Pry.config.print = proc { |output, value| output.puts value.ai }
|
||||
# The following line enables awesome_print for all pry output,
|
||||
# and it also enables paging
|
||||
Pry.config.print = proc {|output, value| Pry::Helpers::BaseHelpers.stagger_output("=> #{value.ai}", output)}
|
||||
|
||||
# If you want awesome_print without automatic pagination, use the line below
|
||||
# Pry.config.print = proc { |output, value| output.puts value.ai }
|
||||
rescue LoadError => err
|
||||
puts "gem install awesome_print # <-- highly recommended"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user