Skip to content

Commit e648854

Browse files
authored
Don't invoke ruby if $HOMEBREW_PREFIX is already defined
Don't run `brew --prefix` if `$HOMEBREW_PREFIX` variable is already defined, improving shell startup time.
1 parent ab1e705 commit e648854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/bash/brew-services

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#########################################################################
44

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

88
# Complete brew services xxxxxxx
99
_brew_services() {

0 commit comments

Comments
 (0)