home/nushell: Display command duration unconditionally
This commit is contained in:
parent
039596413d
commit
e6f83125e6
1 changed files with 4 additions and 5 deletions
|
@ -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: { "› " }
|
||||
|
|
Loading…
Reference in a new issue