shell: Correctly identifiy powershell shells on windows (#43526)

Release Notes:

- Fixed zed only finding pwsh but not powershell on windows
This commit is contained in:
Lukas Wirth
2025-11-26 08:00:46 +00:00
committed by GitHub
parent 9d8b5077b4
commit 00e93bfa11
3 changed files with 23 additions and 13 deletions
+1
View File
@@ -250,6 +250,7 @@ impl PasswordProxy {
.await
.with_context(|| format!("creating askpass script at {askpass_script_path:?}"))?;
make_file_executable(&askpass_script_path).await?;
// todo(shell): There might be no powershell on the system
#[cfg(target_os = "windows")]
let askpass_helper = format!(
"powershell.exe -ExecutionPolicy Bypass -File {}",