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
|
||||
args = edit_args.parse
|
||||
|
||||
ENV["COLORTERM"] = ENV.fetch("HOMEBREW_COLORTERM", nil)
|
||||
|
||||
unless (HOMEBREW_REPOSITORY/".git").directory?
|
||||
odie <<~EOS
|
||||
Changes will be lost!
|
||||
|
Loading…
x
Reference in New Issue
Block a user