From 4c569c06e846207eaf0bb1eaa808b191d1212830 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Tue, 8 Jun 2021 15:50:43 -0500 Subject: [PATCH] update cmd_duration to cmd_duration_ms --- prompt/left_and_right_prompt.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prompt/left_and_right_prompt.nu b/prompt/left_and_right_prompt.nu index 57f4aad..c077612 100644 --- a/prompt/left_and_right_prompt.nu +++ b/prompt/left_and_right_prompt.nu @@ -31,7 +31,7 @@ def construct_prompt [] { let left_len = ($left_colored | ansi strip | str length) # the right side of the prompt with ansi colors - let right_colored = $"(ansi blue)($nu.env.CMD_DURATION)|(ansi dark_gray)($current_time)(ansi reset)" + let right_colored = $"(ansi blue)($nu.env.CMD_DURATION_MS)|(ansi dark_gray)($current_time)(ansi reset)" # the right prompt length *with* ansi escapes (need this to determine how many escape chars there are) let right_colored_len = ( $right_colored | str length)