New command brew irb
Works rather damn well. I considered `brew -i`, but we aren't a shell.
This commit is contained in:
parent
0152b34839
commit
7c8a2656f0
11
Library/Homebrew/cmd/irb.rb
Normal file
11
Library/Homebrew/cmd/irb.rb
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
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
|
||||||
Loading…
x
Reference in New Issue
Block a user