mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #16064 from thecaralice/term-env
Add a few environment variables important for editors
This commit is contained in:
commit
729a6d4eac
@ -85,6 +85,8 @@ module Homebrew
|
|||||||
def edit
|
def edit
|
||||||
args = edit_args.parse
|
args = edit_args.parse
|
||||||
|
|
||||||
|
ENV["COLORTERM"] = ENV.fetch("HOMEBREW_COLORTERM", nil)
|
||||||
|
|
||||||
unless (HOMEBREW_REPOSITORY/".git").directory?
|
unless (HOMEBREW_REPOSITORY/".git").directory?
|
||||||
odie <<~EOS
|
odie <<~EOS
|
||||||
Changes will be lost!
|
Changes will be lost!
|
||||||
|
1
bin/brew
1
bin/brew
@ -152,6 +152,7 @@ done
|
|||||||
# We don't want to take the user's value for, e.g., `HOMEBREW_PATH` here!
|
# We don't want to take the user's value for, e.g., `HOMEBREW_PATH` here!
|
||||||
USED_BY_HOMEBREW_VARS=(
|
USED_BY_HOMEBREW_VARS=(
|
||||||
CODESPACES
|
CODESPACES
|
||||||
|
COLORTERM
|
||||||
DBUS_SESSION_BUS_ADDRESS
|
DBUS_SESSION_BUS_ADDRESS
|
||||||
PATH
|
PATH
|
||||||
SSH_TTY
|
SSH_TTY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user