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

console_message.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ccb5dc51f66dcb3586f319f9dd12a7bf20de3515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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