Change how time is calculated in fish prompt

This commit is contained in:
2017-11-21 10:11:30 -08:00
parent 92604153e9
commit c89e391419

View File

@@ -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