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: {
|
PROMPT_COMMAND_RIGHT: {
|
||||||
let duration = $env.CMD_DURATION_MS | into int
|
[
|
||||||
|
(ansi light_red)
|
||||||
if $duration >= 2000 {
|
($env.CMD_DURATION_MS | into int | into duration --unit ms)
|
||||||
[ (ansi light_red) ($duration | into duration --unit ms) ] | str join
|
] | str join
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PROMPT_INDICATOR: { "› " }
|
PROMPT_INDICATOR: { "› " }
|
||||||
|
|
Loading…
Reference in a new issue