Skip to content

Instantly share code, notes, and snippets.

@kakakikikeke
Created April 12, 2019 02:06
Show Gist options
  • Save kakakikikeke/3527bac6a8ebae75ba31f50d3465982e to your computer and use it in GitHub Desktop.
Save kakakikikeke/3527bac6a8ebae75ba31f50d3465982e to your computer and use it in GitHub Desktop.
.irbrc
require 'irb/completion'
IRB.conf[:SAVE_HISTORY] = 10000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
IRB.conf[:PROMPT][:DEFAULT] = {
:PROMPT_I=>"%N(%m):%03n:%i> ",
:PROMPT_N=>"%N(%m):%03n:%i> ",
:PROMPT_S=>"%N(%m):%03n:%i%l ",
:PROMPT_C=>"%N(%m):%03n:%i* ",
:RETURN=>"=> %s\n"
}
require 'wirb'
Wirb.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment