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:
parent
bf9aa15a5f
commit
4c569c06e8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue