mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-06-10 20:32:21 +00:00
d4bcc519e6
* feat(guix_shell): Initial implementation (#3999) * fix(guix_shell): Change guix nerd font icon to water buffalo emoji * fix(guix_shell): Added guix_shell entries in preset files * fix(guix_shell): Moved guix_shell config docs in to the correct place (alphabetically)
27 lines
597 B
Rust
27 lines
597 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Deserialize, Serialize)]
|
|
#[cfg_attr(
|
|
feature = "config-schema",
|
|
derive(schemars::JsonSchema),
|
|
schemars(deny_unknown_fields)
|
|
)]
|
|
#[serde(default)]
|
|
pub struct GuixShellConfig<'a> {
|
|
pub format: &'a str,
|
|
pub symbol: &'a str,
|
|
pub style: &'a str,
|
|
pub disabled: bool,
|
|
}
|
|
|
|
impl<'a> Default for GuixShellConfig<'a> {
|
|
fn default() -> Self {
|
|
GuixShellConfig {
|
|
format: "via [$symbol]($style) ",
|
|
symbol: "🐃 ",
|
|
style: "yellow bold",
|
|
disabled: false,
|
|
}
|
|
}
|
|
}
|