diff options
| author | Max Howell | 2012-08-06 14:41:55 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-06 14:41:55 -0400 |
| commit | 7c8a2656f0abe93d4d4d0619b4dd11903e3c51bf (patch) | |
| tree | b5405e042bf57367bbef38b782bf83a4f1e75447 /Library | |
| parent | 0152b3483994b6a9c6f8b1f752b93408a0f5adac (diff) | |
| download | brew-7c8a2656f0abe93d4d4d0619b4dd11903e3c51bf.tar.bz2 | |
New command `brew irb`
Works rather damn well.
I considered `brew -i`, but we aren't a shell.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/irb.rb | 11 |
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 |
