debian-mirror-gitlab/config/initializers/console_message.rb
2022-04-04 11:22:00 +05:30

14 lines
271 B
Ruby

# frozen_string_literal: true
if Gitlab::Runtime.console?
# 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