mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
Merge pull request #348 from mitchellh/cc-term_program_env
Set TERM_PROGRAM and TERM_PROGRAM_VERSION environment variables
This commit is contained in:
@ -612,6 +612,11 @@ const Subprocess = struct {
|
||||
try env.put("COLORTERM", "truecolor");
|
||||
}
|
||||
|
||||
// Set environment variables used by some programs (such as neovim) to detect
|
||||
// which terminal emulator and version they're running under.
|
||||
try env.put("TERM_PROGRAM", "ghostty");
|
||||
try env.put("TERM_PROGRAM_VERSION", build_config.version_string);
|
||||
|
||||
// When embedding in macOS and running via XCode, XCode injects
|
||||
// a bunch of things that break our shell process. We remove those.
|
||||
if (comptime builtin.target.isDarwin() and build_config.artifact == .lib) {
|
||||
|
Reference in New Issue
Block a user