detect_local_shell_path_windows

Function detect_local_shell_path_windows 

Source
fn detect_local_shell_path_windows() -> String
Expand description

Detect the best available interactive shell on Windows.

Mirrors the original Go logic from pkg/util/shellutil/shellutil.go DetectLocalShellPath():

  1. Try pwsh (PowerShell 7 — cross-platform)
  2. Try powershell (Windows PowerShell 5.x)
  3. Fall back to cmd.exe