From 83f89188161b38046b39124ffb45bbbd6fcb572f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 20 Feb 2018 01:48:17 -0500 Subject: add vcs support --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 471a3a2..85b4627 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ extern crate chrono; extern crate clap; +extern crate git2; extern crate hostname; extern crate regex; extern crate term; @@ -11,6 +12,7 @@ mod colors; mod power; mod prompt; mod system_info; +mod vcs; fn collect_data() -> prompt::PromptData { let matches = clap::App::new("fancy-prompt") @@ -45,6 +47,7 @@ fn collect_data() -> prompt::PromptData { is_root: system_info::is_root(), time: system_info::time(), power_info: system_info::power_info(), + vcs_info: system_info::vcs_info(), } } -- cgit v1.2.3-54-g00ecf