pub fn detect_shell() -> Option<Shell>Expand description
Detect the user’s interactive shell.
Tries $SHELL first (the standard Unix mechanism), then falls
back to inspecting the parent process’s /proc/PID/comm on Linux
for the case where $SHELL is set to something other than the
actual interactive shell (e.g., when running under a wrapper).
Returns None if no recognized shell can be determined.