pub fn shell_kind_of(shell: &str) -> ShellKind
Classify a shell selection (zsh, /bin/zsh, pwsh, C:\\...\\pwsh.exe, powershell) by its basename; anything unrecognized is driven as bash.
zsh
/bin/zsh
pwsh
C:\\...\\pwsh.exe
powershell