The pry prompt can be configured in a variety of ways. The prompt value can take any arbitrary form. (the limit is whatever you can do in Ruby)
You can see the DEFAULT_PROMPT
values in the rdocs:
[
proc { |target_self, nest_level, pry|
"[#{pry.input_array.size}] #{pry.config.prompt_name}(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}> "
},
proc { |target_self, nest_level, pry|
"[#{pry.input_array.size}] #{pry.config.prompt_name}(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}* "
}
]
In your case, you would probably want to put the following into ~/.pryrc
and then restart any pry sessions:
Pry.config.prompt = [
proc { |target_self, nest_level, pry|
"[#{pry.input_array.size}] #{pry.config.prompt_name}#{":#{nest_level}" unless nest_level.zero?}> "
},
proc { |target_self, nest_level, pry|
"[#{pry.input_array.size}] #{pry.config.prompt_name}#{":#{nest_level}" unless nest_level.zero?}* "
}
]
This removes the Pry.view_clip(target_self)
call which will clip the class from the prompt.
There are examples here on Stack Overflow for configuring the pry prompt as well.