simplify prompt color setting

This commit is contained in:
Christoph Hartmann 2015-12-11 14:29:31 +01:00
parent 100df85b27
commit 95c7ba8fe5

View file

@ -32,7 +32,7 @@ module Inspec
# configure pry shell prompt
Pry.config.prompt_name = 'inspec'
Pry.prompt = [proc{ |obj, nest_level, pry| "\e[0;32m#{Pry.config.prompt_name}\e > " }]
Pry.prompt = [proc {"\e[0;32m#{Pry.config.prompt_name}>\e[0m "}]
# Add a help menu as the default intro
Pry.hooks.add_hook(:before_session, :intro) do