blob: f6e7d2ee2934c4f4e1d584e3ac92829740cc3fe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#: * `--prefix`:
#: Display Homebrew's install path. *Default:* `/usr/local`
#:
#: * `--prefix` <formula>:
#: Display the location in the cellar where <formula> is or would be installed.
module Homebrew
module_function
def __prefix
if ARGV.named.empty?
puts HOMEBREW_PREFIX
else
puts ARGV.resolved_formulae.map(&:installed_prefix)
end
end
end
|