diff options
Diffstat (limited to 'src/configs/aws.rs')
-rw-r--r-- | src/configs/aws.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/configs/aws.rs b/src/configs/aws.rs new file mode 100644 index 000000000..96ed3cb5b --- /dev/null +++ b/src/configs/aws.rs @@ -0,0 +1,29 @@ +use crate::config::{ModuleConfig, RootModuleConfig, SegmentConfig}; + +use ansi_term::{Color, Style}; +use starship_module_config_derive::ModuleConfig; + +#[derive(Clone, ModuleConfig)] +pub struct AwsConfig<'a> { + pub symbol: SegmentConfig<'a>, + pub profile: SegmentConfig<'a>, + pub style: Style, + pub disabled: bool, +} + +impl<'a> RootModuleConfig<'a> for AwsConfig<'a> { + fn new() -> Self { + AwsConfig { + symbol: SegmentConfig { + value: "☁️ ", + style: None, + }, + profile: SegmentConfig { + value: "", + style: None, + }, + style: Color::Yellow.bold(), + disabled: false, + } + } +} |