Permalink
Browse files

Change pause prompt.

  • Loading branch information...
1 parent 06a1e19 commit 8f169d43dd2ec5e17b6e47d9849d9641b30cb920 @netzpirat netzpirat committed Sep 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/guard/interactor.rb
View
4 lib/guard/interactor.rb
@@ -23,10 +23,10 @@ def initialize
Pry.config.prompt = [
proc do |target_self, nest_level, pry|
- "[#{pry.input_array.size}] #{ ::Guard.listener.paused? ? '[p]' : '' } guard(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}> "
+ "[#{pry.input_array.size}] #{ ::Guard.listener.paused? ? 'pause' : 'guard' }(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}> "
end,
proc do |target_self, nest_level, pry|
- "[#{pry.input_array.size}] #{ ::Guard.listener.paused? ? '[p]' : '' } guard(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}* "
+ "[#{pry.input_array.size}] #{ ::Guard.listener.paused? ? 'pause' : 'guard' }(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}* "
end
]
end

0 comments on commit 8f169d4

Please sign in to comment.