aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/irb.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/irb.rb b/Library/Homebrew/cmd/irb.rb
new file mode 100644
index 000000000..6b026b356
--- /dev/null
+++ b/Library/Homebrew/cmd/irb.rb
@@ -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