Sha256: 036da5942e49bc0dd615af2c4ca68b8c4766c5aeb69e15f5a787bdfe6df5ea54

Contents?: true

Size: 587 Bytes

Versions: 13

Compression:

Stored size: 587 Bytes

Contents

# frozen_string_literal: true

require "json"

if defined?(Rails)
  # https://wiki.hackzine.org/development/misc/readline-color-prompt.html
  Pry.config.prompt_name = if Rails.env.production?
    "\001\e[0m\002PROD"
  else
    "\001\e[0m\002dev"
  end
end
Pry.config.pager = false

def define_byebug_aliases!
  if defined?(PryByebug)
    Pry.commands.alias_command "c", "continue"
    Pry.commands.alias_command "s", "step"
    Pry.commands.alias_command "n", "next"
    Pry.commands.alias_command "f", "finish"
  end
end

extend Rails::ConsoleMethods if defined?(Rails::ConsoleMethods)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
boring_generators-0.15.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.14.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.13.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.12.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.11.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.10.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.9.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.8.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.7.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.6.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.5.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.4.0 lib/generators/boring/pry/install/templates/pryrc
boring_generators-0.3.0 lib/generators/boring/pry/install/templates/pryrc