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.

Fix environment loading with tcsh (#35054)

Peter Tripp707df516647f
diff --git a/crates/util/src/shell_env.rs b/crates/util/src/shell_env.rs
index ed6c8a23cc6..d737999e456 100644
--- a/crates/util/src/shell_env.rs
+++ b/crates/util/src/shell_env.rs
@@ -23,7 +23,7 @@ pub fn capture(directory: &std::path::Path) -> Result<collections::HashMap<Strin
let (fd_num, redir) = match shell_name {
Some("rc") => (FD_STDIN, format!(">[1={}]", FD_STDIN)), // `[1=0]`
- Some("nu") => (FD_STDOUT, "".to_string()),
+ Some("nu") | Some("tcsh") => (FD_STDOUT, "".to_string()),
_ => (FD_STDIN, format!(">&{}", FD_STDIN)), // `>&0`
};
command.stdin(Stdio::null());