silver 2.0.0

A cross-shell customizable powerline-like prompt with icons
1
2
3
4
5
6
7
8
9
use crate::Segment;
use std::env;

pub fn segment(segment: &mut Segment, _: &[&str]) {
    segment.value = env::var("CONDA_PROMPT_MODIFIER")
        .unwrap_or_default()
        .trim()
        .to_string();
}