From 3ee86a2e8baccfacd70f630a1268988178b70c8f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 29 Mar 2021 21:11:54 -0700 Subject: [PATCH] wezterm-ssh: don't assume `sh` is in `/bin` This improves compat with nixos --- wezterm-ssh/src/session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-ssh/src/session.rs b/wezterm-ssh/src/session.rs index ecff3a323..161b1857e 100644 --- a/wezterm-ssh/src/session.rs +++ b/wezterm-ssh/src/session.rs @@ -129,7 +129,7 @@ impl SessionInner { cmd = std::process::Command::new(comspec); cmd.args(&["/c", proxy_command]); } else { - cmd = std::process::Command::new("/bin/sh"); + cmd = std::process::Command::new("sh"); cmd.args(&["-c", &format!("exec {}", proxy_command)]); }