From 735bbcfeff0ab7fb4ba568ab205ce8f189293c67 Mon Sep 17 00:00:00 2001 From: Solomon Date: Mon, 13 Oct 2025 09:51:34 +0100 Subject: [PATCH] Try zsh, bash then sh (#1000) --- crates/utils/src/shell.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/utils/src/shell.rs b/crates/utils/src/shell.rs index 937ede23..c844a960 100644 --- a/crates/utils/src/shell.rs +++ b/crates/utils/src/shell.rs @@ -9,8 +9,10 @@ pub fn get_shell_command() -> (&'static str, &'static str) { if cfg!(windows) { ("cmd", "/C") } else { - // Prefer bash if available, fallback to sh - if std::path::Path::new("/bin/bash").exists() { + // Prefer zsh or bash if available, fallback to sh + if std::path::Path::new("/bin/zsh").exists() { + ("zsh", "-c") + } else if std::path::Path::new("/bin/bash").exists() { ("bash", "-c") } else { ("sh", "-c")