From 29a29c22561fc752fc2fbaca7b0ab449a4b5f3a2 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 3d70018d67daa..cf869081d26bd 100755 --- a/bin/brew +++ b/bin/brew @@ -224,8 +224,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