Skip to main content

login_shell

Function login_shell 

Source
pub fn login_shell() -> String
Expand description

The shell this account’s terminal starts: $SHELL when it names a program this account can run (the person’s preference, and how fish starts here when it is the login shell), then the login shell the passwd database records when that runs, then /bin/sh — a shell a person has since uninstalled never leaves them without a terminal. Windows uses COMSPEC, falling back to cmd.exe.