1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 14:47:47 +00:00

update cmd_duration to cmd_duration_ms

This commit is contained in:
Darren Schroeder 2021-06-08 15:50:43 -05:00
parent bf9aa15a5f
commit 4c569c06e8

View file

@ -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)