Skip to content

Commit

Permalink
Merge pull request #16064 from thecaralice/term-env
Browse files Browse the repository at this point in the history
Add a few environment variables important for editors
  • Loading branch information
MikeMcQuaid authored Oct 30, 2023
2 parents 98e06d9 + 9378b12 commit 729a6d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/dev-cmd/edit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def raise_with_message!(path, cask)
def edit
args = edit_args.parse

ENV["COLORTERM"] = ENV.fetch("HOMEBREW_COLORTERM", nil)

unless (HOMEBREW_REPOSITORY/".git").directory?
odie <<~EOS
Changes will be lost!
Expand Down
1 change: 1 addition & 0 deletions bin/brew
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ done
# We don't want to take the user's value for, e.g., `HOMEBREW_PATH` here!
USED_BY_HOMEBREW_VARS=(
CODESPACES
COLORTERM
DBUS_SESSION_BUS_ADDRESS
PATH
SSH_TTY
Expand Down

0 comments on commit 729a6d4

Please sign in to comment.