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