Always load Cask in brew irb.

This commit is contained in:
Markus Reiter 2017-09-11 09:09:05 +02:00
parent f3ec40d696
commit ae27cd7f79

View File

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