summaryrefslogtreecommitdiffstats
path: root/src/modules/mod.rs
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-04-26 22:07:07 -0400
committerGitHub <noreply@github.com>2019-04-26 22:07:07 -0400
commit9a352c0acc8e387b27822177e826605a383070cd (patch)
tree84d1a5507627f42a29ca42d015ba33a73a5c1c35 /src/modules/mod.rs
parent85e4b11f0b440046e55012bf2b693a00e0862e85 (diff)
Add the Git branch segment (#32)
Added - Repository to Context for reuse in directory and git_branch - git_branch to prompt Changed - Made segments bold to match spaceship
Diffstat (limited to 'src/modules/mod.rs')
-rw-r--r--src/modules/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/mod.rs b/src/modules/mod.rs
index 8e034331b..4ed912adc 100644
--- a/src/modules/mod.rs
+++ b/src/modules/mod.rs
@@ -1,5 +1,6 @@
mod character;
mod directory;
+mod git_branch;
mod line_break;
mod nodejs;
mod python;
@@ -16,6 +17,7 @@ pub fn handle(module: &str, context: &Context) -> Option<Segment> {
"rust" | "rustlang" => rust::segment(context),
"python" => python::segment(context),
"line_break" => line_break::segment(context),
+ "git_branch" => git_branch::segment(context),
_ => panic!("Unknown module: {}", module),
}