adds Clean Copy Support
This commit is contained in:
@@ -32,7 +32,7 @@ public struct TerminalLaunch: Sendable, Equatable {
|
||||
|
||||
/// The child environment. A GUI launch inherits no locale and no COLORTERM, which turns
|
||||
/// multibyte output into mojibake and shifts the CLI's 24-bit colours; npm's prefix
|
||||
/// variables make nvm refuse to load.
|
||||
/// variables make nvm refuse to load. `TERM_PROGRAM` tells the agent it runs in Helder.
|
||||
public static func environment(from base: [String: String]) -> [String: String] {
|
||||
var env = base
|
||||
env["npm_config_prefix"] = nil
|
||||
@@ -40,6 +40,8 @@ public struct TerminalLaunch: Sendable, Equatable {
|
||||
if env["LC_ALL"] == nil && env["LC_CTYPE"] == nil && env["LANG"] == nil { env["LANG"] = "en_US.UTF-8" }
|
||||
if env["COLORTERM"] == nil { env["COLORTERM"] = "truecolor" }
|
||||
env["TERM"] = "xterm-256color"
|
||||
env["TERM_PROGRAM"] = "Helder"
|
||||
env["TERM_PROGRAM_VERSION"] = nil
|
||||
return env
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user