mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 17:15:34 +03:00
16 lines
443 B
Fish
16 lines
443 B
Fish
# RUN: %fish %s
|
|
_tide_parent_dirs
|
|
|
|
function _cmd_duration -a duration threshold decimals
|
|
set -lx CMD_DURATION $duration
|
|
set -lx tide_cmd_duration_threshold $threshold
|
|
set -lx tide_cmd_duration_decimals $decimals
|
|
|
|
_tide_decolor (_tide_item_cmd_duration)
|
|
end
|
|
|
|
_cmd_duration 2000 3000 0 # Check:
|
|
_cmd_duration 4567 3000 3 # CHECK: 4.567s
|
|
_cmd_duration 456700 3000 0 # CHECK: 7m 36s
|
|
_cmd_duration 4567000 3000 0 # CHECK: 1h 16m 7s
|