diff --git a/home/config/nil/home.nix b/home/config/nil/home.nix index 3850d7b..84d5ae9 100644 --- a/home/config/nil/home.nix +++ b/home/config/nil/home.nix @@ -258,11 +258,10 @@ in { } PROMPT_COMMAND_RIGHT: { - let duration = $env.CMD_DURATION_MS | into int - - if $duration >= 2000 { - [ (ansi light_red) ($duration | into duration --unit ms) ] | str join - } + [ + (ansi light_red) + ($env.CMD_DURATION_MS | into int | into duration --unit ms) + ] | str join } PROMPT_INDICATOR: { "› " }