Sha256: 3e27a91c0a02115e2e1b10f82203795eb3f6ee0b9315fbcd7f8fa1975d6bbceb
Contents?: true
Size: 908 Bytes
Versions: 2
Compression:
Stored size: 908 Bytes
Contents
Pry.config.editor = ENV.fetch('EDITOR', 'subl -w') Pry.config.prompt = proc do |obj, level, _| prompt = '' prompt << "#{Rails.version}@" if defined?(Rails) prompt << "#{RUBY_VERSION}" "#{prompt} (#{obj})> " end Pry.config.exception_handler = proc do |output, exception, _| output.puts "\e[31m#{exception.class}: #{exception.message}" output.puts "from #{exception.backtrace.first}\e[0m" end if defined?(Rails) require 'rails/console/app' require 'rails/console/helpers' TOPLEVEL_BINDING.eval('self').extend ::Rails::ConsoleMethods end begin require 'pry-meta' Pry.config.print = proc do |output, value| Pry::Helpers::BaseHelpers .stagger_output("=> #{value.ai}", output) end Pry.commands.alias_command 'c', 'continue' Pry.commands.alias_command 's', 'step' Pry.commands.alias_command 'n', 'next' rescue LoadError => error warn '=> Unable to load pry-meta' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pry-meta-0.0.10 | lib/pry-meta/pryrc.rb |
pry-meta-0.0.9 | lib/pry-meta/pryrc.rb |