Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/console_message.rb')
-rw-r--r--config/initializers/console_message.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/initializers/console_message.rb b/config/initializers/console_message.rb
index 523a3898043..fe47195062b 100644
--- a/config/initializers/console_message.rb
+++ b/config/initializers/console_message.rb
@@ -4,6 +4,7 @@ if Gitlab::Runtime.console?
justify = 15
puts '-' * 80
+ puts " Ruby:".ljust(justify) + RUBY_DESCRIPTION
puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision}) #{Gitlab.ee? ? 'EE' : 'FOSS'}"
puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.version)}"
@@ -19,4 +20,15 @@ if Gitlab::Runtime.console?
end
puts '-' * 80
+
+ # Stop irb from writing a history file by default.
+ module IrbNoHistory
+ def init_config(*)
+ super
+
+ IRB.conf[:SAVE_HISTORY] = false
+ end
+ end
+
+ IRB.singleton_class.prepend(IrbNoHistory)
end