configuredProfile
Builds a TerminalProfile from a user-configured shell path.
This is the bridge between the persisted shellPath setting and the PTY launch pipeline. It is called at settings-apply time (never on the hot render/input path) and therefore may perform path resolution work.
Display name resolution priority:
If shellPath matches the primary executable of a known built-in profile (by basename, case-insensitive), that profile's polished display name is used.
Otherwise the basename of shellPath is used.
TerminalProfileKind is always derived from the command so that UI icons remain correct for all recognised shells.
Return
launch profile ready for use by the PTY session.
Parameters
raw shell path from the persisted configuration (e.g. "powershell.exe", "C:\\tools\\nu.exe", "/bin/zsh").
initial PTY working directory, or null for the platform default.