aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb.rb
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-04 23:04:09 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-04 23:04:09 +0000
commitf11ff34d8f89b5cd10099554c20ee53ac02f30f6 (patch)
tree9c94db7a51613e161dbdf06d96cdb9d99558551e /lib/irb.rb
parente195e181e6f2bfd3c0386300688cd1270780f37c (diff)
downloadruby-f11ff34d8f89b5cd10099554c20ee53ac02f30f6.tar.gz
* lib/irb.rb, lib/irb/ext/save-history.rb: Add documentation on how to
enabled irb history [ruby-core:51347] [Bug #7679] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index 755fb050ae..7f3de5dffe 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -117,6 +117,18 @@ STDOUT.sync = true
#
# require 'irb/completion'
#
+# === History
+#
+# By default, irb disables history and will not store any commands you used.
+#
+# If you want to enable 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>.
+#
+# See IRB::Context#save_history= for more information.
+#
# == Customizing the IRB Prompt
#
# In order to customize the prompt, you can change the following Hash: