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 } sig { override.void }
def run def run
ENV["COLORTERM"] = ENV.fetch("HOMEBREW_COLORTERM", nil) ENV["COLORTERM"] = ENV.fetch("HOMEBREW_COLORTERM", nil)
# Recover $TMPDIR for emacsclient
ENV["TMPDIR"] = ENV.fetch("HOMEBREW_TMPDIR", nil)
unless (HOMEBREW_REPOSITORY/".git").directory? unless (HOMEBREW_REPOSITORY/".git").directory?
odie <<~EOS odie <<~EOS

View File

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