aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-07-15 01:16:18 +0900
committeraycabta <aycabta@gmail.com>2019-07-15 01:16:18 +0900
commit078e50c5e9c53d935bdea6ca3ae156c0edcea467 (patch)
treef61420aa72fd13d85bd38887efc38a5b4f9eed74 /lib/irb.rb
parent6d573691058b353840c504d16cc2df1eb0bb517c (diff)
downloadruby-078e50c5e9c53d935bdea6ca3ae156c0edcea467.tar.gz
Save history in IRB is enabled by default
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index e0e4b1a155..2b00de9f62 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -122,13 +122,12 @@ require "irb/version"
#
# === 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.
#