nixos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 4c54ffa4ea6e4eb56b5529577ac819c6fca1c173
parent 9fd86d52d498f4cdaf39ac216cf16e830dc96587
Author: Toni Brown <me@tb148.net>
Date:   Sat, 28 Mar 2026 12:02:56 +0800

correct command duration at shell start

Diffstat:
Mconfig.nu | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.nu b/config.nu @@ -56,7 +56,7 @@ $env.PROMPT_COMMAND = {|| } $env.PROMPT_COMMAND_RIGHT = {|| let now = date now - let duration = $env.CMD_DURATION_MS | into duration -u ms + let duration = if $env.CMD_DURATION_MS == "0823" {0sec} else {$env.CMD_DURATION_MS | into duration -u ms} let then = $now - $duration $"($then | format date "%H:%M:%S") + ($duration) = ($now | format date "%H:%M:%S")" | color $theme.overlay1 }