bash completion should not call brew if brew doesn't exist
In the section "Configuring Completions in `bash`", there's a line of code that sets `HOMEBREW_PREFIX` by calling `brew --prefix`, but it's done before calling `type brew` to see if brew exists. This gives a "-bash: brew: command not found" if you don't have brew installed. That line should be moved inside the `if`.
A
Andy Lester committed
c296c5f2d306dc345ad9c546a04f338280641adb
Parent: 6c2b9ff
Committed by GitHub <noreply@github.com>
on 10/2/2019, 2:00:23 PM