Sha256: da9e23360d0381d77e992d2d4ebcf2b0d903d60036e084cb6b358e1cb3300951
Contents?: true
Size: 360 Bytes
Versions: 23
Compression:
Stored size: 360 Bytes
Contents
# config/initializers/pry.rb # Show red environment name in pry prompt for non development environments unless Rails.env.development? old_prompt = Pry.config.prompt env = Pry::Helpers::Text.red(Rails.env.upcase) Pry.config.prompt = [ proc {|*a| "#{env} #{old_prompt.first.call(*a)}"}, proc {|*a| "#{env} #{old_prompt.second.call(*a)}"}, ] end
Version data entries
23 entries across 23 versions & 1 rubygems