Skip to content

Commit

Permalink
cleans up and improved .irbrc (completion dialog colors!)
Browse files Browse the repository at this point in the history
  • Loading branch information
tisba committed Dec 29, 2023
1 parent 3349b46 commit e1d81ce
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions etc/irbrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# frozen_string_literal: true

require "irb/completion"
require "readline"

IRB.conf[:SAVE_HISTORY] = 100
IRB.conf[:HISTORY_FILE] = "#{ENV["HOME"]}/.irb-save-history"

Readline.basic_word_break_characters = " \t\n\\><=;|&" unless defined?(JRUBY_VERSION)
# tune colors for IRB completion dialog
Reline::Face.config(:completion_dialog) do |conf|
conf.define :default, foreground: :white, background: :black
conf.define :enhanced, foreground: :black, background: :white
conf.define :scrollbar, foreground: :white, background: :black
end

0 comments on commit e1d81ce

Please sign in to comment.