Revert $TMPDIR for emacsclient

This commit is contained in:
Tianshu Wang 2024-09-05 15:49:11 +08:00
parent 615c53d0ab
commit 4f62fd0789
No known key found for this signature in database
GPG Key ID: 4525DA7EEF2D7C56
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,8 @@ module Homebrew
sig { override.void }
def run
ENV["COLORTERM"] = ENV.fetch("HOMEBREW_COLORTERM", nil)
# Recover $TMPDIR for emacsclient
ENV["TMPDIR"] = ENV.fetch("HOMEBREW_TMPDIR", nil)
unless (HOMEBREW_REPOSITORY/".git").directory?
odie <<~EOS

View File

@ -193,6 +193,7 @@ USED_BY_HOMEBREW_VARS=(
RBENV_ROOT
SSH_TTY
SUDO_USER
TMPDIR
TMUX
XDG_CACHE_HOME
XDG_DATA_DIRS