Skip to main content

shell_source_command

Function shell_source_command 

Source
pub fn shell_source_command() -> Option<&'static str>
Expand description

The source <rc> command for the user’s current login shell ($SHELL), or None when it cannot be determined. Single source of truth so post-setup and post-update hints stay in sync and never advise sourcing a shell the user does not have (e.g. ~/.zshrc on a bash-only system — see #321).