blob: bfa47a08aa5d1f7a8408b83539052510f955ce7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
mod cwd;
mod prompt_char;
mod vcs;
mod venv;
use colored::*;
fn main() {
print!("{}", cwd::cwd());
let (branch, status) = vcs::vcs_status().unwrap_or(("".into(), "".into()));
println!(" {} {}", branch, status.dimmed());
print!("{}{} ", venv::get_name(), prompt_char::prompt_char());
}
|