Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
windows: Prefer Git Bash for external agent terminals (#40150)
Cole Miller97f398e677bd
diff --git a/crates/agent_servers/src/acp.rs b/crates/agent_servers/src/acp.rsindex a1e40145d19..6874b5deb66 100644--- a/crates/agent_servers/src/acp.rs+++ b/crates/agent_servers/src/acp.rs@@ -10,7 +10,7 @@ use project::Project;use project::agent_server_store::AgentServerCommand;use serde::Deserialize;use task::Shell;-use util::ResultExt as _;+use util::{ResultExt as _, get_default_system_shell_preferring_bash};use std::path::PathBuf;use std::{any::Any, cell::RefCell};@@ -834,7 +834,7 @@ impl acp::Client for ClientDelegate {.and_then(|r| r.read(cx).default_system_shell()).map(Shell::Program)})?- .unwrap_or(task::Shell::System);+ .unwrap_or_else(|| Shell::Program(get_default_system_shell_preferring_bash()));let is_windows = project.read_with(&self.cx, |project, cx| project.path_style(cx).is_windows()).unwrap_or(cfg!(windows));