aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 43a807c7b..84be2fb1d 100755
--- a/bin/brew
+++ b/bin/brew
@@ -44,6 +44,14 @@ fi
HOMEBREW_LIBRARY="$HOMEBREW_REPOSITORY/Library"
+for VAR in EDITOR PATH
+do
+ VAR_NEW="HOMEBREW_${VAR}"
+ # TODO: find a better solution than this.
+ env | grep -q "$VAR_NEW" && continue
+ export "$VAR_NEW"="${!VAR}"
+done
+
if [[ -n "$HOMEBREW_ENV_FILTERING" ]]
then
PATH="/usr/bin:/bin:/usr/sbin:/sbin"