From 55b543eb13040a97fb297bd9c8b21385dabfaa35 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Fri, 12 Oct 2018 23:08:05 +0900 Subject: [PATCH] fix: display correct time on Linux; close #463 --- fisher.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fisher.fish b/fisher.fish index f3a6add..ec5c4f7 100644 --- a/fisher.fish +++ b/fisher.fish @@ -9,7 +9,7 @@ switch (command uname) end case \* function _fisher_now -a elapsed - command date "+%s%3N" | command awk "{ sub(/3N\$/,\"000\"); print \$0 - 0$elapsed }" + command date "+%s%3N" | command awk -v ELAPSED="$elapsed" '{ sub(/%?3N$/, "000") } $0 -= ELAPSED' end end