Skip to content
Permalink
Browse files

Save history in IRB is enabled by default

  • Loading branch information...
aycabta committed Jul 14, 2019
1 parent 6d57369 commit 078e50c5e9c53d935bdea6ca3ae156c0edcea467
Showing with 5 additions and 6 deletions.
  1. +4 −5 lib/irb.rb
  2. +1 −1 lib/irb/init.rb
@@ -122,13 +122,12 @@
#
# === History
#
# By default, irb disables history and will not store any commands you used.
# By default, irb will store the last 1000 commands you used in
# <code>~/.irb_history</code>.
#
# If you want to enable history, add the following to your +.irbrc+:
# If you want to disable history, add the following to your +.irbrc+:
#
# IRB.conf[:SAVE_HISTORY] = 1000
#
# This will now store the last 1000 commands in <code>~/.irb_history</code>.
# IRB.conf[:SAVE_HISTORY] = nil
#
# See IRB::Context#save_history= for more information.
#
@@ -54,7 +54,7 @@ def IRB.init_config(ap_path)
@CONF[:VERBOSE] = nil

@CONF[:EVAL_HISTORY] = nil
@CONF[:SAVE_HISTORY] = nil
@CONF[:SAVE_HISTORY] = 1000

@CONF[:BACK_TRACE_LIMIT] = 16

0 comments on commit 078e50c

Please sign in to comment.
You can’t perform that action at this time.