diff options
Diffstat (limited to 'src/configs/cmd_duration.rs')
-rw-r--r-- | src/configs/cmd_duration.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/configs/cmd_duration.rs b/src/configs/cmd_duration.rs index f60390158..e7e8c3855 100644 --- a/src/configs/cmd_duration.rs +++ b/src/configs/cmd_duration.rs @@ -1,13 +1,12 @@ use crate::config::{ModuleConfig, RootModuleConfig}; -use ansi_term::{Color, Style}; use starship_module_config_derive::ModuleConfig; #[derive(Clone, ModuleConfig)] pub struct CmdDurationConfig<'a> { pub min_time: i64, - pub prefix: &'a str, - pub style: Style, + pub format: &'a str, + pub style: &'a str, pub show_milliseconds: bool, pub disabled: bool, } @@ -16,9 +15,9 @@ impl<'a> RootModuleConfig<'a> for CmdDurationConfig<'a> { fn new() -> Self { CmdDurationConfig { min_time: 2_000, - prefix: "took ", + format: "took [$duration]($style) ", show_milliseconds: false, - style: Color::Yellow.bold(), + style: "yellow bold", disabled: false, } } |