Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
windows: Treat `pwsh` as `PowerShell` (#16409)
张小白c0ea806afebc
diff --git a/crates/terminal_view/src/terminal_panel.rs b/crates/terminal_view/src/terminal_panel.rsindex e2725183b54..2fee3c88c38 100644--- a/crates/terminal_view/src/terminal_panel.rs+++ b/crates/terminal_view/src/terminal_panel.rs@@ -886,7 +886,11 @@ fn to_windows_shell_variable(shell_type: WindowsShellType, input: String) -> Str#[cfg(target_os = "windows")]fn to_windows_shell_type(shell: &str) -> WindowsShellType {- if shell == "powershell" || shell.ends_with("powershell.exe") {+ if shell == "powershell"+ || shell.ends_with("powershell.exe")+ || shell == "pwsh"+ || shell.ends_with("pwsh.exe")+ {WindowsShellType::Powershell} else if shell == "cmd" || shell.ends_with("cmd.exe") {WindowsShellType::Cmd