Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add IRBRC configuration (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 authored Dec 13, 2023
1 parent c24a658 commit 49dc13f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .irbrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

require "irb/completion"

IRB.conf[:AUTO_INDENT] = true
IRB.conf[:HISTORY_FILE] = ".irb_history"
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:USE_AUTOCOMPLETE] = false

def clear
system("clear")
end
2 changes: 2 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ require "svgeez"
# require "pry"
# Pry.start

ENV["IRBRC"] = ".irbrc"

require "irb"
IRB.start(__FILE__)

0 comments on commit 49dc13f

Please sign in to comment.