diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-02-20 01:48:17 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-02-20 03:30:54 -0500 |
commit | 83f89188161b38046b39124ffb45bbbd6fcb572f (patch) | |
tree | 05a68afe3ad0394b3383adec01e98225b0ba92d4 /src/main.rs | |
parent | 0820849c2b6793f035bfcf7d5cd22dfbe9b45c25 (diff) | |
download | fancy-prompt-83f89188161b38046b39124ffb45bbbd6fcb572f.tar.gz fancy-prompt-83f89188161b38046b39124ffb45bbbd6fcb572f.zip |
add vcs support
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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(), } } |