Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix SSH remotes running Nushell (#25613)
Peter Tripp2d050a81304f
diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rsindex de77c236fdb..b36058a62d3 100644--- a/crates/remote/src/ssh_session.rs+++ b/crates/remote/src/ssh_session.rs@@ -1634,7 +1634,7 @@ impl SshRemoteConnection {}async fn platform(&self) -> Result<SshPlatform> {- let uname = self.socket.run_command("uname", &["-sm"]).await?;+ let uname = self.socket.run_command("sh", &["-c", "uname -sm"]).await?;let Some((os, arch)) = uname.split_once(" ") else {Err(anyhow!("unknown uname: {uname:?}"))?};