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

Merge pull request #62 from fdncred/change_cmd_duration_to_ms

update cmd_duration to cmd_duration_ms
This commit is contained in:
Darren Schroeder 2021-06-08 15:51:34 -05:00 committed by GitHub
commit ce14c37070
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)