Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix shell environment not loading for Nushell (#7442)
Thorsten Ball068c1415597f
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rsindex 136ebe2642d..33fcfc040f5 100644--- a/crates/zed/src/main.rs+++ b/crates/zed/src/main.rs@@ -811,7 +811,7 @@ async fn load_login_shell_environment() -> Result<()> {"SHELL environment variable is not assigned so we can't source login environment variables",)?;let output = Command::new(&shell)- .args(["-lic", &format!("echo {marker} && /usr/bin/env -0")])+ .args(["-l", "-i", "-c", &format!("echo {marker}; /usr/bin/env -0")]).output().await.context("failed to spawn login shell to source login environment variables")?;