Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Set `TERM` env variable inside the terminal (#22615)

Julius de Boer4c47728d6f4e
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs
index 8adbd28622c..f882a31171b 100644
--- a/crates/terminal/src/terminal.rs
+++ b/crates/terminal/src/terminal.rs
@@ -347,6 +347,7 @@ impl TerminalBuilder {
env.insert("ZED_TERM".to_string(), "true".to_string());
env.insert("TERM_PROGRAM".to_string(), "zed".to_string());
+ env.insert("TERM".to_string(), "alacritty".to_string());
env.insert(
"TERM_PROGRAM_VERSION".to_string(),
release_channel::AppVersion::global(cx).to_string(),