pub struct Config { /* private fields */ }
Expand description
User preferences
Implementations§
source§impl Config
impl Config
pub fn builder() -> Builder
sourcepub fn max_history_size(&self) -> usize
pub fn max_history_size(&self) -> usize
Tell the maximum length (i.e. number of entries) for the history.
sourcepub fn history_duplicates(&self) -> HistoryDuplicates
pub fn history_duplicates(&self) -> HistoryDuplicates
Tell if lines which match the previous history entry are saved or not in the history list.
By default, they are ignored.
sourcepub fn history_ignore_space(&self) -> bool
pub fn history_ignore_space(&self) -> bool
Tell if lines which begin with a space character are saved or not in the history list.
By default, they are saved.
pub fn completion_type(&self) -> CompletionType
pub fn completion_prompt_limit(&self) -> usize
pub fn keyseq_timeout(&self) -> i32
pub fn edit_mode(&self) -> EditMode
sourcepub fn auto_add_history(&self) -> bool
pub fn auto_add_history(&self) -> bool
Tell if lines are automatically added to the history.
By default, they are not.
sourcepub fn color_mode(&self) -> ColorMode
pub fn color_mode(&self) -> ColorMode
Tell if colors should be enabled.
By default, they are except if stdout is not a TTY.