tide (fish prompt) installed
This commit is contained in:
parent
142fd7eaa4
commit
e83440486a
85 changed files with 2589 additions and 62 deletions
12
.config/fish/functions/_tide_item_cmd_duration.fish
Normal file
12
.config/fish/functions/_tide_item_cmd_duration.fish
Normal file
|
@ -0,0 +1,12 @@
|
|||
function _tide_item_cmd_duration
|
||||
test $CMD_DURATION -gt $tide_cmd_duration_threshold && t=(
|
||||
math -s0 "$CMD_DURATION/3600000" # Hours
|
||||
math -s0 "$CMD_DURATION/60000"%60 # Minutes
|
||||
math -s$tide_cmd_duration_decimals "$CMD_DURATION/1000"%60) if test $t[1] != 0
|
||||
_tide_print_item cmd_duration $tide_cmd_duration_icon' ' "$t[1]h $t[2]m $t[3]s"
|
||||
else if test $t[2] != 0
|
||||
_tide_print_item cmd_duration $tide_cmd_duration_icon' ' "$t[2]m $t[3]s"
|
||||
else
|
||||
_tide_print_item cmd_duration $tide_cmd_duration_icon' ' "$t[3]s"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue