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