Sha256: 13587923b1f05a00c33f719ee2c24223aeaff933c6672c4c47b44e410a0e7ee2
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true Pry.config.prompt = [ proc do |obj, _, pry| target = obj.to_s == 'main' ? '' : " (#{target_self.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' ? '' : " (#{target_self.to_s.split('::').last})" env = Rash::Shell.environment_with_color "#{pry.config.prompt_name} [#{env}]#{target} * " end ]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rash-shell-0.3.0 | lib/rash/shell/pry/prompt.rb |
rash-shell-0.2.0 | lib/rash/shell/pry/prompt.rb |