pub enum ShellType {
Sh,
Bash,
Zsh,
Fish,
Ksh,
Tcsh,
Dash,
PowerShell,
Cmd,
Unknown,
}Expand description
Known shell types.
Variants§
Sh
Bourne shell.
Bash
Bash shell.
Zsh
Zsh shell.
Fish
Fish shell.
Ksh
Ksh shell.
Tcsh
Tcsh shell.
Dash
Dash shell.
PowerShell
PowerShell.
Cmd
Windows Command Prompt.
Unknown
Unknown shell.
Implementations§
Source§impl ShellType
impl ShellType
Sourcepub const fn supports_ansi(&self) -> bool
pub const fn supports_ansi(&self) -> bool
Check if shell supports ANSI sequences.
Sourcepub const fn prompt_pattern(&self) -> &'static str
pub const fn prompt_pattern(&self) -> &'static str
Get typical prompt pattern.
Sourcepub const fn exit_command(&self) -> &'static str
pub const fn exit_command(&self) -> &'static str
Get exit command.
Trait Implementations§
impl Copy for ShellType
impl Eq for ShellType
impl StructuralPartialEq for ShellType
Auto Trait Implementations§
impl Freeze for ShellType
impl RefUnwindSafe for ShellType
impl Send for ShellType
impl Sync for ShellType
impl Unpin for ShellType
impl UnwindSafe for ShellType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more