Sha256: 5d5cbca2c3a30e7ddfddc41781c8a9845d59e89f589dce43f50863cd9f07673b

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

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

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#{ENV['APP_NAME'] || File.basename(Dir.pwd)}\033[0m"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rash-shell-0.1.1 lib/rash/shell/pry/config.rb
rash-shell-0.1.0 lib/rash/shell/pry/config.rb