Sha256: c322a7d7f11c2c4303265b6b507a7313b4852ca225e15fbb7bd84f63642dc30c
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true Pry.config.prompt = [ proc do |obj, _, pry| target = obj.to_s == 'main' ? '' : " (#{obj.to_s.split('::').last})" env = Rash::Shell.environment_with_color "#{pry.config.prompt_name} [#{env}]#{target} % " end, proc do |obj, _, pry| target = obj.to_s == 'main' ? '' : " (#{obj.to_s.split('::').last})" env = Rash::Shell.environment_with_color "#{pry.config.prompt_name} [#{env}]#{target} * " end ]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rash-shell-0.3.1 | lib/rash/shell/pry/prompt.rb |