diff options
author | John Letey <30328854+johnletey@users.noreply.github.com> | 2019-09-10 18:54:40 +0100 |
---|---|---|
committer | Kevin Song <chipbuster@users.noreply.github.com> | 2019-09-10 12:54:40 -0500 |
commit | f9a45140459c9f155a2be46c2c51d3c186bb3175 (patch) | |
tree | af2d8a5a21d4261ca10c7ba37efc1b40ee7c2278 /src/modules/mod.rs | |
parent | 7d02f718c85834eed558d80fdecbebbb7f8513b0 (diff) |
feat: Implement the prompt module for time (#138)
Add a module which displays the current time in a format requested by
the user. Disabled by default.
Diffstat (limited to 'src/modules/mod.rs')
-rw-r--r-- | src/modules/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/mod.rs b/src/modules/mod.rs index 83a7d1c40..34f1cc12b 100644 --- a/src/modules/mod.rs +++ b/src/modules/mod.rs @@ -15,6 +15,7 @@ mod package; mod python; mod ruby; mod rust; +mod time; mod username; #[cfg(feature = "battery")] @@ -44,6 +45,7 @@ pub fn handle<'a>(module: &str, context: &'a Context) -> Option<Module<'a>> { "jobs" => jobs::module(context), "nix_shell" => nix_shell::module(context), "hostname" => hostname::module(context), + "time" => time::module(context), _ => { eprintln!("Error: Unknown module {}. Use starship module --list to list out all supported modules.", module); |