mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
read 'prompt_name' from pry.config
.
This commit is contained in:
parent
7e612a3156
commit
7be17e5d32
1 changed files with 2 additions and 2 deletions
|
@ -54,11 +54,11 @@ class Pry
|
||||||
# The default prompt; includes the target and nesting level
|
# The default prompt; includes the target and nesting level
|
||||||
DEFAULT_PROMPT = [
|
DEFAULT_PROMPT = [
|
||||||
proc { |target_self, nest_level, pry|
|
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?}> "
|
"[#{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|
|
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?}* "
|
"[#{pry.input_array.size}] #{pry.config.prompt_name}(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}* "
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue