Files
starship/src/configs/localip.rs
T

24 lines
524 B
Rust
Raw Normal View History

use crate::config::ModuleConfig;
use serde::Serialize;
use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct LocalipConfig<'a> {
pub ssh_only: bool,
pub format: &'a str,
pub style: &'a str,
pub disabled: bool,
}
impl<'a> Default for LocalipConfig<'a> {
fn default() -> Self {
LocalipConfig {
ssh_only: true,
format: "[$localipv4]($style) ",
style: "yellow bold",
disabled: true,
}
}
}