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