Change how time is calculated in fish prompt
This commit is contained in:
@@ -22,8 +22,8 @@ function fish_right_prompt
|
|||||||
|
|
||||||
# Show last execution time
|
# Show last execution time
|
||||||
if test $CMD_DURATION
|
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
|
section took {$secs}s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user