Mike McQuaid ca47b47f77
Speedup brew --prefix <formula>
This case is _really_ slow even although it's something we encourage
people to run often and build systems often do. The `brew --prefix`
case is really fast because it's just in Bash so: let's pull the
`brew --prefix <formula>` case into Bash too.

This doesn't handle any edge-cases like `--installed` and the formula
detection is pretty simple.

Also, to make this behaviour consistent, never output `Cellar` paths
from the (Ruby) `brew --prefix`; we never want people relying on the
Cellar paths anyway, only output them if the formula wasn't installed
(where, arguably, using a Cellar path is even worse) and the speedup is
worth this deviation in behaviour.
2021-02-25 17:07:28 +00:00
..
2019-12-17 21:42:53 +00:00
2020-09-02 12:23:14 -04:00
2021-02-03 20:46:21 -05:00
2019-01-08 19:13:46 +00:00
2017-01-04 10:53:21 +00:00
2021-02-09 13:11:45 +01:00
2018-10-04 15:37:01 +01:00
2021-02-03 20:16:10 -05:00
2018-10-03 21:21:05 +00:00
2021-02-25 17:07:28 +00:00
2020-03-10 10:01:15 +01:00
2021-02-09 13:11:45 +01:00
2017-07-02 15:09:26 +01:00
2020-07-16 20:31:05 +08:00
2020-11-18 10:13:57 +00:00