def configure_prompt
Pry.config.prompt = [
proc do |target_self, nest_level, pry|
history = pry.input_array.size
process = ::Guard.listener.paused? ? 'pause' : 'guard'
clip = Pry.view_clip(target_self)
level = ":#{ nest_level }" unless nest_level.zero?
scope = if !::Guard.scope[:plugins].empty?
"{#{ ::Guard.scope[:plugins].join }} "
elsif !::Guard.scope[:groups].empty?
"{#{ ::Guard.scope[:groups].join }} "
else
''
end
"[#{ history }] #{ scope }#{ process }(#{ clip })#{ level }> "
end,
proc do |target_self, nest_level, pry|
history = pry.input_array.size
process = ::Guard.listener.paused? ? 'pause' : 'guard'
clip = Pry.view_clip(target_self)
level = ":#{ nest_level }" unless nest_level.zero?
scope = if !::Guard.scope[:plugins].empty?
"{#{ ::Guard.scope[:plugins].join }} "
elsif !::Guard.scope[:groups].empty?
"{#{ ::Guard.scope[:groups].join }} "
else
''
end
"[#{ history }] #{ scope }#{ process }(#{ clip })#{ level }* "
end
]
end