Created
February 22, 2012 04:50
-
-
Save skorks/1881521 to your computer and use it in GitHub Desktop.
My irbrc file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
#need irbtools gem isntalled for all these to be pulled in | |
#need irbtools-more gem isntalled for all these to be pulled in | |
#you probably want these in rvm global gemset so it get pulled into all the rubies | |
require 'rubygems' unless defined? Gem # only needed in 1.8 | |
require 'irbtools/configure' | |
Irbtools.remove_library(:hirb) | |
Irbtools.remove_library(:boson) | |
Irbtools.remove_library(:wirb) | |
Irbtools.remove_library(:fancy_irb) | |
Irbtools.start | |
require 'wirb' | |
Wirb.load_schema :colorless # either need this or need to define own color schema as per yml schemas in repo (otherwise strings are black on a black prompt, no good) | |
Wirb.start | |
require 'fancy_irb' | |
FancyIrb.start( | |
:colorize => { # colors hash. Set to nil to deactivate colorizing | |
:rocket_prompt => [:blue], | |
:result_prompt => [:blue], | |
:input_prompt => nil, | |
:irb_errors => [:red], | |
:stderr => [:red, :bright], | |
:stdout => [:green, :bright], | |
:input => nil, | |
:output => true, # wirb's output colorization | |
} | |
) | |
require 'hirb' | |
Hirb.enable | |
# Project-specific .irbrc | |
if Dir.pwd != File.expand_path("~") | |
local_irbrc = File.expand_path '.irbrc' | |
if File.exist? local_irbrc | |
puts "Loading #{local_irbrc}" | |
load local_irbrc | |
end | |
end | |
#require 'paint' | |
#require 'wirb' | |
#Wirb.load_schema :colorless # either need this or need to define own color schema as per yml schemas in repo (otherwise strings are black on a black prompt, no good) | |
#Wirb.start | |
#require 'looksee' | |
#require 'fancy_irb' | |
#FancyIrb.start( | |
#:colorize => { # colors hash. Set to nil to deactivate colorizing | |
#:rocket_prompt => [:blue], | |
#:result_prompt => [:blue], | |
#:input_prompt => nil, | |
#:irb_errors => [:red], | |
#:stderr => [:red, :bright], | |
#:stdout => [:green, :bright], | |
#:input => nil, | |
#:output => true, # wirb's output colorization | |
#} | |
#) | |
#require 'hirb' | |
#Hirb.enable | |
#require 'clipboard' | |
#require 'interactive_editor' | |
#require 'sketches' | |
#Sketches.config :editor => 'mvim', :background => true | |
#require 'awesome_print' | |
#require 'boson' | |
#Boson.start | |
#require 'bond' | |
#Bond.start :readline => :ruby # needs the rb-readline gem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment