From 7be17e5d32e1fa7a3da9fc8c3def4c9d9c05d978 Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 3 Apr 2014 06:37:21 +0200 Subject: [PATCH] read 'prompt_name' from `pry.config`. --- lib/pry.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pry.rb b/lib/pry.rb index c417f3b2..6bb0cf68 100644 --- a/lib/pry.rb +++ b/lib/pry.rb @@ -54,11 +54,11 @@ class Pry # The default prompt; includes the target and nesting level DEFAULT_PROMPT = [ 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| - "[#{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?}* " } ]