From 9117b3b7d326948fcbe4da0ea13b0698e1449b9d Mon Sep 17 00:00:00 2001 From: sawanoboly Date: Wed, 15 Apr 2015 20:06:39 +0900 Subject: Show Chef::VERSION at prompt_c and prompt_i on shell session --- lib/chef/shell.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb index ee4fe78808..1589832bef 100644 --- a/lib/chef/shell.rb +++ b/lib/chef/shell.rb @@ -108,9 +108,9 @@ module Shell irb_conf[:IRB_RC] = lambda do |conf| m = conf.main - conf.prompt_c = "chef#{leader(m)} > " + conf.prompt_c = "chef#{leader(m)} (#{Chef::VERSION})> " conf.return_format = " => %s \n" - conf.prompt_i = "chef#{leader(m)} > " + conf.prompt_i = "chef#{leader(m)} (#{Chef::VERSION})> " conf.prompt_n = "chef#{leader(m)} ?> " conf.prompt_s = "chef#{leader(m)}%l> " conf.use_tracer = false -- cgit v1.2.1