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

Version Path
tawork-0.0.50 config/initializers/pry.rb
tawork-0.0.49 config/initializers/pry.rb
tawork-0.0.48 config/initializers/pry.rb
tawork-0.0.47 config/initializers/pry.rb
tawork-0.0.46 config/initializers/pry.rb
tawork-0.0.45 config/initializers/pry.rb
tawork-0.0.44 config/initializers/pry.rb
tawork-0.0.43 config/initializers/pry.rb
tawork-0.0.42 config/initializers/pry.rb
tawork-0.0.41 config/initializers/pry.rb
tawork-0.0.40 config/initializers/pry.rb
tawork-0.0.39 config/initializers/pry.rb
tawork-0.0.38 config/initializers/pry.rb
tawork-0.0.37 config/initializers/pry.rb
tawork-0.0.36 config/initializers/pry.rb
tawork-0.0.35 config/initializers/pry.rb
tawork-0.0.34 config/initializers/pry.rb
tawork-0.0.33 config/initializers/pry.rb
tawork-0.0.31 config/initializers/pry.rb
tawork-0.0.30 config/initializers/pry.rb