summaryrefslogtreecommitdiffstats
path: root/src/print.rs
diff options
context:
space:
mode:
authorKevin Song <chipbuster@users.noreply.github.com>2019-08-08 10:25:30 -0700
committerMatan Kushner <hello@matchai.me>2019-08-08 13:25:30 -0400
commit3daf3ddf26ab8f2860e2c961bbe8b8d691049d08 (patch)
tree298643e04407cefe19b41d57b57673f1a51ddf41 /src/print.rs
parentb2303d5d8e292a827d6c0294b6f76a505666df85 (diff)
feat: implement timer module (#118)
Implement a timer module that takes a commandline argument, the number of seconds the last job took to complete, and displays it if appropriate. Alters shell initialization files to compute this number using date +%s where needed. Adds a config section to configure minimum amount of time before timer is shown (default is 2s)
Diffstat (limited to 'src/print.rs')
-rw-r--r--src/print.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/print.rs b/src/print.rs
index 3cd185e41..c3d46f5dc 100644
--- a/src/print.rs
+++ b/src/print.rs
@@ -18,6 +18,7 @@ const PROMPT_ORDER: &[&str] = &[
"rust",
"python",
"go",
+ "cmd_duration",
"line_break",
"character",
];