From e6f83125e6e1b21613296a5651dbc699785652ad Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Tue, 1 Oct 2024 13:57:34 +0200 Subject: [PATCH] home/nushell: Display command duration unconditionally --- home/config/nil/home.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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: { "› " }