Struct shrs::ShellConfig
source · pub struct ShellConfig {
pub hooks: Hooks,
pub builtins: Builtins,
pub readline: Box<dyn Readline>,
pub alias: Alias,
pub env: Env,
pub theme: Theme,
pub lang: Box<dyn Lang>,
pub plugins: Vec<Box<dyn Plugin>>,
pub state: State,
pub history: Box<dyn History<HistoryItem = String>>,
pub keybinding: Box<dyn Keybinding>,
}Expand description
Unified shell config struct
Fields§
§hooks: HooksRuntime hooks, see Hooks
builtins: BuiltinsBuiltin shell commands, see Builtins
readline: Box<dyn Readline>Readline implementation
alias: AliasAliases, see Alias
env: EnvEnvironment variables, see Env
theme: ThemeColor theme
lang: Box<dyn Lang>Command language
plugins: Vec<Box<dyn Plugin>>Plugins, see [Plugins]
state: StateGlobally accessible state, see State
history: Box<dyn History<HistoryItem = String>>History, see History
keybinding: Box<dyn Keybinding>Keybindings, see Keybinding
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ShellConfig
impl !Send for ShellConfig
impl !Sync for ShellConfig
impl Unpin for ShellConfig
impl !UnwindSafe for ShellConfig
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