Sha256: 714ab218831f467c27c7fb3717715199bac935831b39bccd1930b1fddfc37c98

Contents?: true

Size: 632 Bytes

Versions: 3

Compression:

Stored size: 632 Bytes

Contents

# frozen_string_literal: true

Pry.hooks.add_hook(:before_session, :welcome) do |output|
  output.print "#{Pry::Helpers::Text.yellow(Pry.config.prompt_name)} shell " \
               "started in #{Rash::Shell.environment_with_color} environment. "

  output.print "Happy Hackin'" unless ENV['RACK_ENV'] == 'production'
  output.puts "\n\n"
end

name = [ENV['APP_NAME'], ENV['APP_COMPONENT']].compact.join('-')
name = File.basename(Dir.pwd) if name.empty?

Pry.config.color = true
Pry.config.theme = 'railscasts'
Pry.config.pager = false
Pry.config.history.file = '.pry_history'
Pry.config.prompt_name = "\e[38;5;222m#{name}\033[0m"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rash-shell-0.3.1 lib/rash/shell/pry/config.rb
rash-shell-0.3.0 lib/rash/shell/pry/config.rb
rash-shell-0.2.0 lib/rash/shell/pry/config.rb