From 7df7164cf485ecef97419bfda6c7eef5e96632a2 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 58bc4f24a35e3..4df8362300edc 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