diff --git a/fish/functions/fish_right_prompt.fish b/fish/functions/fish_right_prompt.fish index 83ff3c2..e02a199 100644 --- a/fish/functions/fish_right_prompt.fish +++ b/fish/functions/fish_right_prompt.fish @@ -22,8 +22,8 @@ function fish_right_prompt # Show last execution time if test $CMD_DURATION - if test $CMD_DURATION -gt (math "1000 * 2") - set secs (math "$CMD_DURATION / 1000") + set secs (math "$CMD_DURATION / 1000") + if test $secs -gt 2 section took {$secs}s end end