util: Fix shell environment fetching failing with nu (#40275)

Release Notes:

- Fixed shell environment fetching failing with nu shell
This commit is contained in:
Lukas Wirth
2025-10-16 10:21:31 +00:00
committed by GitHub
parent c2ace408d9
commit 9948778e96
3 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -177,8 +177,12 @@ async fn capture_windows(
.args([
"-c",
&format!(
"cd '{}'; {} --printenv",
"cd '{}'; {}{} --printenv",
directory.display(),
shell_kind
.command_prefix()
.map(|prefix| prefix.to_string())
.unwrap_or_default(),
zed_path.display()
),
])