Max Howell 7c8a2656f0 New command brew irb
Works rather damn well.

I considered `brew -i`, but we aren't a shell.
2012-08-06 14:41:55 -04:00

12 lines
318 B
Ruby

module Homebrew extend self
def irb
if ARGV.include? "--help"
puts "Formula.factory('ace').installed?"
else
ohai "Interactive Homebrew Shell"
puts "Example commands available with: brew irb --help"
exec "irb", "-I#{HOMEBREW_REPOSITORY}/Library/Homebrew", "-rglobal"
end
end
end