diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-06-06 09:58:30 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-06-06 09:58:30 +0200 |
| commit | 0ff821272cd8900ea47cc9d267b2914bc817b262 (patch) | |
| tree | d3d2df23c3e683f0b26c30daf4bd5fbe3f8f7ce0 /.config | |
| parent | 86b4f940a47f703ade018fff03d8fb3169567ea4 (diff) | |
| download | dotfiles-0ff821272cd8900ea47cc9d267b2914bc817b262.tar.gz dotfiles-0ff821272cd8900ea47cc9d267b2914bc817b262.zip | |
ruby: moved irbrc into its own directory
I have also simplified the whole thing, since defaults have changed a
lot since I last updated this.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to '.config')
| -rw-r--r-- | .config/irb/irbrc | 18 |
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 |
