From c89e3914198e39209663e542b7b9e624d152c29a Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Tue, 21 Nov 2017 10:11:30 -0800 Subject: [PATCH] Change how time is calculated in fish prompt --- fish/functions/fish_right_prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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