Merge pull request #3147 from reitermarkus/cask-irb

Always load Cask in `brew irb`.
This commit is contained in:
Markus Reiter 2017-09-14 05:55:52 +02:00 committed by GitHub
commit aeab09169f

View File

@ -19,15 +19,13 @@ class String
end
end
def cask
$LOAD_PATH.unshift("#{HOMEBREW_LIBRARY_PATH}/cask/lib")
require "hbc"
end
module Homebrew
module_function
def irb
$LOAD_PATH.unshift("#{HOMEBREW_LIBRARY_PATH}/cask/lib")
require "hbc"
if ARGV.include? "--examples"
puts "'v8'.f # => instance of the v8 formula"
puts ":hub.f.installed?"