Skip to content

Commit

Permalink
Don't invoke ruby if $HOMEBREW_PREFIX is already defined
Browse files Browse the repository at this point in the history
Don't run `brew --prefix` if `$HOMEBREW_PREFIX` variable is already defined, improving shell startup time.
  • Loading branch information
gaelicWizard committed Aug 13, 2021
1 parent ab1e705 commit e648854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/bash/brew-services
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#########################################################################

# Called once on shell startup
HOMEBREW_PREFIX="$(brew --prefix)"
: "${HOMEBREW_PREFIX:=$(brew --prefix)}"

# Complete brew services xxxxxxx
_brew_services() {
Expand Down

0 comments on commit e648854

Please sign in to comment.