mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Fix fish < 2.4 command duration regression
For real this time Fixes #107
This commit is contained in:
parent
0f2a2d9ada
commit
4e602d98d7
@ -39,7 +39,8 @@ function __bobthefish_pretty_ms -S -a ms interval -d 'Millisecond formatting for
|
|||||||
end
|
end
|
||||||
|
|
||||||
switch $FISH_VERSION
|
switch $FISH_VERSION
|
||||||
case 2.\*
|
# Fish 2.3 and lower doesn't know about the -s argument to math.
|
||||||
|
case 2.0.\* 2.1.\* 2.2.\* 2.3.\*
|
||||||
math "scale=$scale;$ms/$interval_ms" | string replace -r '\\.?0*$' $interval
|
math "scale=$scale;$ms/$interval_ms" | string replace -r '\\.?0*$' $interval
|
||||||
case \*
|
case \*
|
||||||
math -s$scale "$ms/$interval_ms" | string replace -r '\\.?0*$' $interval
|
math -s$scale "$ms/$interval_ms" | string replace -r '\\.?0*$' $interval
|
||||||
|
Loading…
Reference in New Issue
Block a user