Skip to main content

detect_shell

Function detect_shell 

Source
pub fn detect_shell() -> Option<String>
Expand description

Detect the current shell from environment.

Checks SHELL environment variable and tries to determine the shell type.

ยงReturns

Returns the shell name if detected, or None if unknown.