ahiru-tpm 0.5.0

Drop-in replacement for the famous Tmux Plugin Manager (TPM), written in Rust. 🦆
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub trait PrefixLines {
    fn prefix_lines(&self, prefix: &str) -> String;
}

impl PrefixLines for str {
    fn prefix_lines(&self, prefix: &str) -> String {
        self.lines()
            .map(|line| format!("{}{}", prefix, line))
            .collect::<Vec<_>>()
            .join("\n")
    }
}