Skip to content

Commit

Permalink
Allow ruby from rbenv to take precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
huyz committed Oct 26, 2024
1 parent a4afbaf commit 5884fa8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/brew
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5884fa8

Please sign in to comment.