aboutsummaryrefslogtreecommitdiff
path: root/.config/irb
diff options
context:
space:
mode:
Diffstat (limited to '.config/irb')
-rw-r--r--.config/irb/irbrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/irb/irbrc b/.config/irb/irbrc
new file mode 100644
index 0000000..9a1cc3f
--- /dev/null
+++ b/.config/irb/irbrc
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+require 'rubygems'
+
+# Simple prompt
+IRB.conf[:PROMPT_MODE] = :SIMPLE
+
+# History
+IRB.conf[:SAVE_HISTORY] = 100
+IRB.conf[:HISTORY_FILE] = File.expand_path('~/.irb_history')
+
+# Use readline
+IRB.conf[:USE_READLINE] = true
+
+# Reload this .irbrc
+def reload!
+ load __FILE__
+end