From d8b8c7f8bc599fc52507b26516f4f40d57232518 Mon Sep 17 00:00:00 2001 From: huyz Date: Fri, 25 Aug 2023 23:51:31 -0700 Subject: [PATCH] Allow ruby from rbenv to take precedence --- bin/brew | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 14c135f0f0c23..bab08608c9c44 100755 --- a/bin/brew +++ b/bin/brew @@ -242,8 +242,12 @@ fi # filter the user environment PATH="/usr/bin:/bin:/usr/sbin:/sbin" +# 2023-08-25 huy +PATH="${HOME}/.rbenv/shims:${PATH}" -FILTERED_ENV=() +# 2023-08-25 huy +#FILTERED_ENV=() +FILTERED_ENV=("RBENV_VERSION=${RBENV_VERSION-}") ENV_VAR_NAMES=( HOME SHELL PATH TERM TERMINFO TERMINFO_DIRS COLUMNS DISPLAY LOGNAME USER CI SSH_AUTH_SOCK SUDO_ASKPASS http_proxy https_proxy ftp_proxy no_proxy all_proxy HTTPS_PROXY FTP_PROXY ALL_PROXY